allow showing pngs on empty wallets page

This commit is contained in:
julian 2024-07-08 10:10:04 -06:00
parent b6efaa0a11
commit 81eb1e81b0
3 changed files with 34 additions and 22 deletions

View file

@ -33,6 +33,9 @@ class EmptyWallets extends ConsumerWidget {
final isDesktop = Util.isDesktop;
final stack =
ref.watch(themeProvider.select((value) => value.assets.stack));
return SafeArea(
child: Padding(
padding: const EdgeInsets.symmetric(
@ -47,15 +50,22 @@ class EmptyWallets extends ConsumerWidget {
const Spacer(
flex: 2,
),
SvgPicture.file(
File(
ref.watch(
themeProvider.select(
(value) => value.assets.stack,
),
),
),
SizedBox(
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(
height: isDesktop ? 30 : 16,

View file

@ -31,7 +31,7 @@ final pThemeService = Provider<ThemeService>((ref) {
});
class ThemeService {
static const _currentDefaultThemeVersion = 10;
static const _currentDefaultThemeVersion = 11;
ThemeService._();
static ThemeService? _instance;
static ThemeService get instance => _instance ??= ThemeService._();

View file

@ -287,21 +287,23 @@ packages:
source: hosted
version: "4.6.0"
coinlib:
dependency: transitive
dependency: "direct overridden"
description:
name: coinlib
sha256: "44aa3f7b07d3b03d58353e7657f43cdaf76a70ad2cce5bdac9306208099d8df5"
url: "https://pub.dev"
source: hosted
version: "2.0.0"
path: coinlib
ref: b88e68e2e10ffe54d802deeed6b9e83da7721a1f
resolved-ref: b88e68e2e10ffe54d802deeed6b9e83da7721a1f
url: "https://github.com/peercoin/coinlib.git"
source: git
version: "2.1.0-rc.1"
coinlib_flutter:
dependency: "direct main"
description:
name: coinlib_flutter
sha256: b352378773158dbaec37bd542c297682f3812f9881acb676971f0f4c5893631f
url: "https://pub.dev"
source: hosted
version: "2.0.0"
path: coinlib_flutter
ref: b88e68e2e10ffe54d802deeed6b9e83da7721a1f
resolved-ref: b88e68e2e10ffe54d802deeed6b9e83da7721a1f
url: "https://github.com/peercoin/coinlib.git"
source: git
version: "2.1.0-rc.1"
collection:
dependency: transitive
description:
@ -1588,8 +1590,8 @@ packages:
dependency: "direct main"
description:
path: "packages/solana"
ref: a83e375678eb22fe544dc125d29bbec0fb833882
resolved-ref: a83e375678eb22fe544dc125d29bbec0fb833882
ref: "706be5f166d31736c443cca4cd311b7fcfc2a9bf"
resolved-ref: "706be5f166d31736c443cca4cd311b7fcfc2a9bf"
url: "https://github.com/cypherstack/espresso-cash-public.git"
source: git
version: "0.30.4"