* Fix SizedBox location

* Disable more shadows and fix colors

* Add buffer to bottom of transactions page
This commit is contained in:
tuxsudo
2025-02-18 00:35:58 +02:00
committed by GitHub
parent 21b86b42eb
commit 99338a0532
4 changed files with 39 additions and 31 deletions
@@ -329,18 +329,18 @@ class BalanceRowWidget extends StatelessWidget {
borderRadius: BorderRadius.circular(30.0),
border: Border.all(
color: Theme.of(context).extension<BalancePageTheme>()!.cardBorderColor,
width: 1.5,
width: 1,
),
color: Theme.of(context).extension<SyncIndicatorTheme>()!.syncedBackgroundColor,
boxShadow: [
BoxShadow(
color: Theme.of(context)
.extension<BalancePageTheme>()!
.cardBorderColor
.withAlpha(50),
spreadRadius: dashboardViewModel.getShadowSpread(),
blurRadius: dashboardViewModel.getShadowBlur())
],
// boxShadow: [
// BoxShadow(
// color: Theme.of(context)
// .extension<BalancePageTheme>()!
// .cardBorderColor
// .withAlpha(50),
// spreadRadius: dashboardViewModel.getShadowSpread(),
// blurRadius: dashboardViewModel.getShadowBlur())
// ],
),
child: TextButton(
onPressed: () => Fluttertoast.showToast(
@@ -354,11 +354,11 @@ class CryptoBalanceWidget extends StatelessWidget {
),
),
),
SizedBox(height: 150),
],
],
);
}),
SizedBox(height: 130),
],
),
);
@@ -24,7 +24,7 @@ class NavigationDock extends StatelessWidget {
builder: (_) {
return Container(
alignment: Alignment.bottomCenter,
height: 130,
height: 150,
decoration: BoxDecoration(
gradient: LinearGradient(
begin: Alignment.topCenter,
@@ -126,9 +126,9 @@ class NavigationDock extends StatelessWidget {
: Positioned(
child: Observer(
builder: (_) {
return Container(
return Container(
alignment: Alignment.bottomCenter,
height: 130,
height: 150,
decoration: BoxDecoration(
gradient: LinearGradient(
begin: Alignment.topCenter,
@@ -137,15 +137,23 @@ class NavigationDock extends StatelessWidget {
Theme.of(context)
.extension<DashboardPageTheme>()!
.thirdGradientBackgroundColor
.withAlpha(10),
.withAlpha(5),
Theme.of(context)
.extension<DashboardPageTheme>()!
.thirdGradientBackgroundColor
.withAlpha(75),
.withAlpha(50),
Theme.of(context)
.extension<DashboardPageTheme>()!
.thirdGradientBackgroundColor
.withAlpha(125),
Theme.of(context)
.extension<DashboardPageTheme>()!
.thirdGradientBackgroundColor
.withAlpha(150),
Theme.of(context)
.extension<DashboardPageTheme>()!
.thirdGradientBackgroundColor
.withAlpha(200),
Theme.of(context)
.extension<DashboardPageTheme>()!
.thirdGradientBackgroundColor,
@@ -168,15 +176,15 @@ class NavigationDock extends StatelessWidget {
color: Theme.of(context)
.extension<SyncIndicatorTheme>()!
.syncedBackgroundColor,
boxShadow: [
BoxShadow(
color: Theme.of(context)
.extension<BalancePageTheme>()!
.cardBorderColor
.withAlpha(50),
spreadRadius: dashboardViewModel.getShadowSpread(),
blurRadius: dashboardViewModel.getShadowBlur())
],
// boxShadow: [
// BoxShadow(
// color: Theme.of(context)
// .extension<BalancePageTheme>()!
// .cardBorderColor
// .withAlpha(50),
// spreadRadius: dashboardViewModel.getShadowSpread(),
// blurRadius: dashboardViewModel.getShadowBlur())
// ],
),
child: Container(
padding: EdgeInsets.symmetric(horizontal: 10),
@@ -40,7 +40,6 @@ class TransactionsPage extends StatelessWidget {
color: responsiveLayoutUtil.shouldRenderMobileUI
? null
: Theme.of(context).colorScheme.background,
padding: EdgeInsets.only(top: 24, bottom: 24),
child: Column(
children: <Widget>[
Observer(builder: (_) {
@@ -73,12 +72,15 @@ class TransactionsPage extends StatelessWidget {
child: Observer(
builder: (_) {
final items = dashboardViewModel.items;
final amount = items.length + 1;
return items.isNotEmpty
? ListView.builder(
key: ValueKey('transactions_page_list_view_builder_key'),
itemCount: items.length,
itemCount: items.length + 1,
itemBuilder: (context, index) {
if(index == items.length) return SizedBox(height: 150);
final item = items[index];
if (item is DateSectionItem) {
@@ -164,7 +166,6 @@ class TransactionsPage extends StatelessWidget {
),
);
}
if (item is OrderListItem) {
final order = item.order;
@@ -182,7 +183,6 @@ class TransactionsPage extends StatelessWidget {
),
);
}
return Container(color: Colors.transparent, height: 1);
})
: Center(
@@ -197,7 +197,7 @@ class TransactionsPage extends StatelessWidget {
);
},
),
)
),
],
),
),