mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-01-22 10:34:32 +00:00
allow showing pngs on empty wallets page
This commit is contained in:
parent
b6efaa0a11
commit
81eb1e81b0
3 changed files with 34 additions and 22 deletions
|
@ -33,6 +33,9 @@ class EmptyWallets extends ConsumerWidget {
|
||||||
|
|
||||||
final isDesktop = Util.isDesktop;
|
final isDesktop = Util.isDesktop;
|
||||||
|
|
||||||
|
final stack =
|
||||||
|
ref.watch(themeProvider.select((value) => value.assets.stack));
|
||||||
|
|
||||||
return SafeArea(
|
return SafeArea(
|
||||||
child: Padding(
|
child: Padding(
|
||||||
padding: const EdgeInsets.symmetric(
|
padding: const EdgeInsets.symmetric(
|
||||||
|
@ -47,15 +50,22 @@ class EmptyWallets extends ConsumerWidget {
|
||||||
const Spacer(
|
const Spacer(
|
||||||
flex: 2,
|
flex: 2,
|
||||||
),
|
),
|
||||||
SvgPicture.file(
|
SizedBox(
|
||||||
File(
|
|
||||||
ref.watch(
|
|
||||||
themeProvider.select(
|
|
||||||
(value) => value.assets.stack,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
),
|
|
||||||
width: isDesktop ? 324 : MediaQuery.of(context).size.width / 3,
|
width: isDesktop ? 324 : MediaQuery.of(context).size.width / 3,
|
||||||
|
child: (stack.endsWith(".png"))
|
||||||
|
? Image.file(
|
||||||
|
File(
|
||||||
|
stack,
|
||||||
|
),
|
||||||
|
)
|
||||||
|
: SvgPicture.file(
|
||||||
|
File(
|
||||||
|
stack,
|
||||||
|
),
|
||||||
|
width: isDesktop
|
||||||
|
? 324
|
||||||
|
: MediaQuery.of(context).size.width / 3,
|
||||||
|
),
|
||||||
),
|
),
|
||||||
SizedBox(
|
SizedBox(
|
||||||
height: isDesktop ? 30 : 16,
|
height: isDesktop ? 30 : 16,
|
||||||
|
|
|
@ -31,7 +31,7 @@ final pThemeService = Provider<ThemeService>((ref) {
|
||||||
});
|
});
|
||||||
|
|
||||||
class ThemeService {
|
class ThemeService {
|
||||||
static const _currentDefaultThemeVersion = 10;
|
static const _currentDefaultThemeVersion = 11;
|
||||||
ThemeService._();
|
ThemeService._();
|
||||||
static ThemeService? _instance;
|
static ThemeService? _instance;
|
||||||
static ThemeService get instance => _instance ??= ThemeService._();
|
static ThemeService get instance => _instance ??= ThemeService._();
|
||||||
|
|
28
pubspec.lock
28
pubspec.lock
|
@ -287,21 +287,23 @@ packages:
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "4.6.0"
|
version: "4.6.0"
|
||||||
coinlib:
|
coinlib:
|
||||||
dependency: transitive
|
dependency: "direct overridden"
|
||||||
description:
|
description:
|
||||||
name: coinlib
|
path: coinlib
|
||||||
sha256: "44aa3f7b07d3b03d58353e7657f43cdaf76a70ad2cce5bdac9306208099d8df5"
|
ref: b88e68e2e10ffe54d802deeed6b9e83da7721a1f
|
||||||
url: "https://pub.dev"
|
resolved-ref: b88e68e2e10ffe54d802deeed6b9e83da7721a1f
|
||||||
source: hosted
|
url: "https://github.com/peercoin/coinlib.git"
|
||||||
version: "2.0.0"
|
source: git
|
||||||
|
version: "2.1.0-rc.1"
|
||||||
coinlib_flutter:
|
coinlib_flutter:
|
||||||
dependency: "direct main"
|
dependency: "direct main"
|
||||||
description:
|
description:
|
||||||
name: coinlib_flutter
|
path: coinlib_flutter
|
||||||
sha256: b352378773158dbaec37bd542c297682f3812f9881acb676971f0f4c5893631f
|
ref: b88e68e2e10ffe54d802deeed6b9e83da7721a1f
|
||||||
url: "https://pub.dev"
|
resolved-ref: b88e68e2e10ffe54d802deeed6b9e83da7721a1f
|
||||||
source: hosted
|
url: "https://github.com/peercoin/coinlib.git"
|
||||||
version: "2.0.0"
|
source: git
|
||||||
|
version: "2.1.0-rc.1"
|
||||||
collection:
|
collection:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
|
@ -1588,8 +1590,8 @@ packages:
|
||||||
dependency: "direct main"
|
dependency: "direct main"
|
||||||
description:
|
description:
|
||||||
path: "packages/solana"
|
path: "packages/solana"
|
||||||
ref: a83e375678eb22fe544dc125d29bbec0fb833882
|
ref: "706be5f166d31736c443cca4cd311b7fcfc2a9bf"
|
||||||
resolved-ref: a83e375678eb22fe544dc125d29bbec0fb833882
|
resolved-ref: "706be5f166d31736c443cca4cd311b7fcfc2a9bf"
|
||||||
url: "https://github.com/cypherstack/espresso-cash-public.git"
|
url: "https://github.com/cypherstack/espresso-cash-public.git"
|
||||||
source: git
|
source: git
|
||||||
version: "0.30.4"
|
version: "0.30.4"
|
||||||
|
|
Loading…
Reference in a new issue