mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-01-25 11:45:59 +00:00
only pad on oceanBreeze theme
This commit is contained in:
parent
ecd5df1ca0
commit
a0bb793eff
1 changed files with 11 additions and 4 deletions
|
@ -17,6 +17,8 @@ class Background extends StatelessWidget {
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
Color? color;
|
Color? color;
|
||||||
|
|
||||||
|
bool shouldPad = false;
|
||||||
|
|
||||||
switch (Theme.of(context).extension<StackColors>()!.themeType) {
|
switch (Theme.of(context).extension<StackColors>()!.themeType) {
|
||||||
case ThemeType.light:
|
case ThemeType.light:
|
||||||
case ThemeType.dark:
|
case ThemeType.dark:
|
||||||
|
@ -24,6 +26,9 @@ class Background extends StatelessWidget {
|
||||||
color = Theme.of(context).extension<StackColors>()!.background;
|
color = Theme.of(context).extension<StackColors>()!.background;
|
||||||
break;
|
break;
|
||||||
case ThemeType.oceanBreeze:
|
case ThemeType.oceanBreeze:
|
||||||
|
shouldPad = true;
|
||||||
|
color = null;
|
||||||
|
break;
|
||||||
case ThemeType.fruitSorbet:
|
case ThemeType.fruitSorbet:
|
||||||
color = null;
|
color = null;
|
||||||
break;
|
break;
|
||||||
|
@ -43,10 +48,12 @@ class Background extends StatelessWidget {
|
||||||
children: [
|
children: [
|
||||||
Positioned.fill(
|
Positioned.fill(
|
||||||
child: Padding(
|
child: Padding(
|
||||||
padding: EdgeInsets.only(
|
padding: shouldPad
|
||||||
top: MediaQuery.of(context).size.height * (1 / 8),
|
? EdgeInsets.only(
|
||||||
bottom: MediaQuery.of(context).size.height * (1 / 12),
|
top: MediaQuery.of(context).size.height * (1 / 8),
|
||||||
),
|
bottom: MediaQuery.of(context).size.height * (1 / 12),
|
||||||
|
)
|
||||||
|
: const EdgeInsets.all(0),
|
||||||
child: SvgPicture.asset(
|
child: SvgPicture.asset(
|
||||||
bgAsset!,
|
bgAsset!,
|
||||||
fit: BoxFit.fill,
|
fit: BoxFit.fill,
|
||||||
|
|
Loading…
Reference in a new issue