mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-03-09 10:16:04 +00:00
update ui bug (#497)
This commit is contained in:
parent
244d20d1b6
commit
bed815e370
4 changed files with 9 additions and 5 deletions
lib/src/screens/ionia
|
@ -179,6 +179,7 @@ class _IoniaCardListView extends StatelessWidget {
|
||||||
title: merchant.legalName,
|
title: merchant.legalName,
|
||||||
backgroundColor: Theme.of(context).accentTextTheme.display4.backgroundColor.withOpacity(0.1),
|
backgroundColor: Theme.of(context).accentTextTheme.display4.backgroundColor.withOpacity(0.1),
|
||||||
discount: 0,
|
discount: 0,
|
||||||
|
hideBorder: true,
|
||||||
discountBackground: AssetImage('assets/images/red_badge_discount.png'),
|
discountBackground: AssetImage('assets/images/red_badge_discount.png'),
|
||||||
titleColor: Theme.of(context).accentTextTheme.display4.backgroundColor,
|
titleColor: Theme.of(context).accentTextTheme.display4.backgroundColor,
|
||||||
subtitleColor: Theme.of(context).hintColor,
|
subtitleColor: Theme.of(context).hintColor,
|
||||||
|
|
|
@ -169,8 +169,11 @@ class _GradiantContainer extends StatelessWidget {
|
||||||
borderRadius: BorderRadius.circular(15),
|
borderRadius: BorderRadius.circular(15),
|
||||||
gradient: LinearGradient(
|
gradient: LinearGradient(
|
||||||
colors: [
|
colors: [
|
||||||
Theme.of(context).scaffoldBackgroundColor,
|
Theme.of(context)
|
||||||
Theme.of(context).accentColor,
|
.primaryTextTheme
|
||||||
|
.subhead
|
||||||
|
.decorationColor,
|
||||||
|
Theme.of(context).primaryTextTheme.subhead.color,
|
||||||
],
|
],
|
||||||
begin: Alignment.topRight,
|
begin: Alignment.topRight,
|
||||||
end: Alignment.bottomLeft,
|
end: Alignment.bottomLeft,
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
import 'package:cake_wallet/ionia/ionia_merchant.dart';
|
|
||||||
import 'package:cake_wallet/routes.dart';
|
import 'package:cake_wallet/routes.dart';
|
||||||
import 'package:cake_wallet/src/screens/base_page.dart';
|
import 'package:cake_wallet/src/screens/base_page.dart';
|
||||||
import 'package:cake_wallet/src/screens/ionia/widgets/card_item.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/src/widgets/scollable_with_bottom_section.dart';
|
||||||
import 'package:cake_wallet/themes/theme_base.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_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/material.dart';
|
||||||
import 'package:flutter/services.dart';
|
import 'package:flutter/services.dart';
|
||||||
import 'package:flutter_mobx/flutter_mobx.dart';
|
import 'package:flutter_mobx/flutter_mobx.dart';
|
||||||
|
|
|
@ -8,6 +8,7 @@ class CardItem extends StatelessWidget {
|
||||||
@required this.backgroundColor,
|
@required this.backgroundColor,
|
||||||
@required this.titleColor,
|
@required this.titleColor,
|
||||||
@required this.subtitleColor,
|
@required this.subtitleColor,
|
||||||
|
this.hideBorder = false,
|
||||||
this.discountBackground,
|
this.discountBackground,
|
||||||
this.onTap,
|
this.onTap,
|
||||||
this.logoUrl,
|
this.logoUrl,
|
||||||
|
@ -21,6 +22,7 @@ class CardItem extends StatelessWidget {
|
||||||
final String logoUrl;
|
final String logoUrl;
|
||||||
final double discount;
|
final double discount;
|
||||||
final bool isAmount;
|
final bool isAmount;
|
||||||
|
final bool hideBorder;
|
||||||
final Color backgroundColor;
|
final Color backgroundColor;
|
||||||
final Color titleColor;
|
final Color titleColor;
|
||||||
final Color subtitleColor;
|
final Color subtitleColor;
|
||||||
|
@ -38,7 +40,7 @@ class CardItem extends StatelessWidget {
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
color: backgroundColor,
|
color: backgroundColor,
|
||||||
borderRadius: BorderRadius.circular(20),
|
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),
|
color: Colors.white.withOpacity(0.20),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|
Loading…
Reference in a new issue