mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-12-22 19:49:22 +00:00
Fix shadows
This commit is contained in:
parent
39bebfdd6a
commit
a9ee754b30
2 changed files with 57 additions and 14 deletions
|
@ -232,7 +232,7 @@ class _DashboardPageView extends BasePage {
|
|||
bottomSheetService: bottomSheetService,
|
||||
child: Container(
|
||||
child: Stack(
|
||||
fit: StackFit.expand,
|
||||
//fit: StackFit.expand,
|
||||
alignment: Alignment.bottomCenter,
|
||||
//mainAxisSize: MainAxisSize.max,
|
||||
//alignment: Alignment.bottomCenter,
|
||||
|
@ -250,10 +250,23 @@ class _DashboardPageView extends BasePage {
|
|||
),
|
||||
//),
|
||||
Positioned(
|
||||
top: 540,
|
||||
top: 590,
|
||||
child: Container(
|
||||
// decoration: BoxDecoration(
|
||||
// boxShadow: [
|
||||
// BoxShadow(
|
||||
// color: Theme.of(context)
|
||||
// .extension<DashboardPageTheme>()!
|
||||
// .thirdGradientBackgroundColor
|
||||
// .withAlpha(50),
|
||||
// spreadRadius: 5,
|
||||
// blurRadius: 7,
|
||||
// offset: Offset(0, 3),
|
||||
// )
|
||||
// ]
|
||||
// ),
|
||||
alignment: Alignment.bottomCenter,
|
||||
padding: EdgeInsets.only(top: 50),
|
||||
//padding: EdgeInsets.only(top: 50),
|
||||
child: Observer(
|
||||
builder: (context) {
|
||||
return Semantics(
|
||||
|
@ -312,12 +325,10 @@ class _DashboardPageView extends BasePage {
|
|||
.withAlpha(150),
|
||||
Theme.of(context)
|
||||
.extension<DashboardPageTheme>()!
|
||||
.thirdGradientBackgroundColor
|
||||
.withAlpha(200),
|
||||
.thirdGradientBackgroundColor,
|
||||
Theme.of(context)
|
||||
.extension<DashboardPageTheme>()!
|
||||
.thirdGradientBackgroundColor
|
||||
.withAlpha(250),
|
||||
// Color.fromARGB(10, 245, 8, 82),
|
||||
// Color.fromARGB(75, 245, 8, 82),
|
||||
// Color.fromARGB(150, 245, 8, 82),
|
||||
|
@ -327,7 +338,7 @@ class _DashboardPageView extends BasePage {
|
|||
),
|
||||
),
|
||||
child: Container(
|
||||
//alignment: Alignment.bottomCenter,
|
||||
alignment: Alignment.bottomCenter,
|
||||
padding: const EdgeInsets.only(
|
||||
left: 16, right: 16, bottom: 24, top: 48),
|
||||
child: ClipRRect(
|
||||
|
|
|
@ -32,6 +32,8 @@ import 'package:cw_core/wallet_type.dart';
|
|||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_mobx/flutter_mobx.dart';
|
||||
|
||||
import '../../../themes/extensions/dashboard_page_theme.dart';
|
||||
|
||||
class WalletListPage extends BasePage {
|
||||
WalletListPage({
|
||||
required this.walletListViewModel,
|
||||
|
@ -146,10 +148,11 @@ class WalletListBodyState extends State<WalletListBody> {
|
|||
|
||||
return Container(
|
||||
padding: EdgeInsets.only(top: 16),
|
||||
child: Column(
|
||||
children: [
|
||||
Expanded(
|
||||
child: SingleChildScrollView(
|
||||
child: Stack(
|
||||
fit: StackFit.expand,
|
||||
alignment: Alignment.bottomCenter,
|
||||
children: <Widget> [
|
||||
SingleChildScrollView(
|
||||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
|
@ -326,12 +329,39 @@ class WalletListBodyState extends State<WalletListBody> {
|
|||
),
|
||||
),
|
||||
},
|
||||
SizedBox(height: 150)
|
||||
],
|
||||
),
|
||||
),
|
||||
Positioned(
|
||||
top: 505,
|
||||
bottom: 0,
|
||||
left: 0,
|
||||
right: 0,
|
||||
child: Container(
|
||||
padding: EdgeInsets.only(top: 50),
|
||||
decoration: BoxDecoration(
|
||||
gradient: LinearGradient(
|
||||
begin: Alignment.topCenter,
|
||||
end: Alignment.bottomCenter,
|
||||
colors: <Color>[
|
||||
Theme.of(context).colorScheme.background
|
||||
.withAlpha(10),
|
||||
Theme.of(context).colorScheme.background,
|
||||
Theme.of(context).colorScheme.background,
|
||||
Theme.of(context).colorScheme.background
|
||||
// Color.fromARGB(10, 245, 8, 82),
|
||||
// Color.fromARGB(75, 245, 8, 82),
|
||||
// Color.fromARGB(150, 245, 8, 82),
|
||||
// Color.fromARGB(200, 245, 8, 82),
|
||||
// Color.fromARGB(255, 245, 8, 82),
|
||||
],
|
||||
),
|
||||
Padding(
|
||||
padding: const EdgeInsets.all(24),
|
||||
),
|
||||
child: Container(
|
||||
alignment: Alignment.bottomCenter,
|
||||
//margin: EdgeInsets.only(top: 24),
|
||||
padding: EdgeInsets.only(left: 24, right: 24),
|
||||
child: Column(
|
||||
children: <Widget>[
|
||||
PrimaryImageButton(
|
||||
|
@ -396,6 +426,8 @@ class WalletListBodyState extends State<WalletListBody> {
|
|||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue