update ui bug (#497)

This commit is contained in:
Godwin Asuquo 2022-09-07 14:58:37 +03:00 committed by GitHub
parent 244d20d1b6
commit bed815e370
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 9 additions and 5 deletions

View file

@ -179,6 +179,7 @@ class _IoniaCardListView extends StatelessWidget {
title: merchant.legalName,
backgroundColor: Theme.of(context).accentTextTheme.display4.backgroundColor.withOpacity(0.1),
discount: 0,
hideBorder: true,
discountBackground: AssetImage('assets/images/red_badge_discount.png'),
titleColor: Theme.of(context).accentTextTheme.display4.backgroundColor,
subtitleColor: Theme.of(context).hintColor,

View file

@ -169,8 +169,11 @@ class _GradiantContainer extends StatelessWidget {
borderRadius: BorderRadius.circular(15),
gradient: LinearGradient(
colors: [
Theme.of(context).scaffoldBackgroundColor,
Theme.of(context).accentColor,
Theme.of(context)
.primaryTextTheme
.subhead
.decorationColor,
Theme.of(context).primaryTextTheme.subhead.color,
],
begin: Alignment.topRight,
end: Alignment.bottomLeft,

View file

@ -1,4 +1,3 @@
import 'package:cake_wallet/ionia/ionia_merchant.dart';
import 'package:cake_wallet/routes.dart';
import 'package:cake_wallet/src/screens/base_page.dart';
import 'package:cake_wallet/src/screens/ionia/widgets/card_item.dart';
@ -8,7 +7,6 @@ import 'package:cake_wallet/src/widgets/primary_button.dart';
import 'package:cake_wallet/src/widgets/scollable_with_bottom_section.dart';
import 'package:cake_wallet/themes/theme_base.dart';
import 'package:cake_wallet/view_model/ionia/ionia_buy_card_view_model.dart';
import 'package:cake_wallet/view_model/ionia/ionia_purchase_merch_view_model.dart';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:flutter_mobx/flutter_mobx.dart';

View file

@ -8,6 +8,7 @@ class CardItem extends StatelessWidget {
@required this.backgroundColor,
@required this.titleColor,
@required this.subtitleColor,
this.hideBorder = false,
this.discountBackground,
this.onTap,
this.logoUrl,
@ -21,6 +22,7 @@ class CardItem extends StatelessWidget {
final String logoUrl;
final double discount;
final bool isAmount;
final bool hideBorder;
final Color backgroundColor;
final Color titleColor;
final Color subtitleColor;
@ -38,7 +40,7 @@ class CardItem extends StatelessWidget {
decoration: BoxDecoration(
color: backgroundColor,
borderRadius: BorderRadius.circular(20),
border: Border.all(
border: hideBorder ? Border.symmetric(horizontal: BorderSide.none, vertical: BorderSide.none) : Border.all(
color: Colors.white.withOpacity(0.20),
),
),