integrating api in new flow

design_3.0_latest
muhammad.abbasi 1 year ago
parent e8dc052d02
commit 58666916cc

@ -29,6 +29,7 @@ class AppColor {
static const Color neutral120 = Color(0xff7D859A); static const Color neutral120 = Color(0xff7D859A);
static const Color neutral130 = Color(0xffE0E0E0); static const Color neutral130 = Color(0xffE0E0E0);
static const Color neutral140 = Color(0xffE6E6E6); static const Color neutral140 = Color(0xffE6E6E6);
static const Color neutral150 = Color(0xffA1A1A1);
//background //background

@ -8,6 +8,7 @@ class AppFilledButton extends StatelessWidget {
final VoidCallback? onPressed; final VoidCallback? onPressed;
final String label; final String label;
final bool maxWidth, loading; final bool maxWidth, loading;
final double? fontSize;
final bool showIcon; final bool showIcon;
final Widget? icon; final Widget? icon;
final Color? buttonColor; final Color? buttonColor;
@ -15,7 +16,17 @@ class AppFilledButton extends StatelessWidget {
final bool showBorder; final bool showBorder;
const AppFilledButton( const AppFilledButton(
{this.onPressed, required this.label, this.maxWidth = false, this.showIcon = false, this.icon, this.loading = false, this.showBorder = false, this.buttonColor, this.textColor, Key? key}) {this.onPressed,
required this.label,
this.maxWidth = false,
this.showIcon = false,
this.icon,
this.fontSize,
this.loading = false,
this.showBorder = false,
this.buttonColor,
this.textColor,
Key? key})
: super(key: key); : super(key: key);
@override @override
@ -39,14 +50,16 @@ class AppFilledButton extends StatelessWidget {
), ),
) )
: showIcon && icon != null : showIcon && icon != null
? Row( ? Row(mainAxisAlignment: MainAxisAlignment.center, children: [
mainAxisAlignment: MainAxisAlignment.center,
children: [
icon!, icon!,
8.width, 8.width,
label.heading6(context).custom(color: textColor ?? AppColor.background(context)), label.heading6(context).custom(color: textColor ?? AppColor.background(context)),
]) ])
: label.heading6(context).custom(color: textColor ?? AppColor.background(context)), : label.heading6(context).custom(
color: textColor ?? AppColor.background(context),
align: TextAlign.center,
fontSize: fontSize ?? 16.toScreenWidth,
),
).onPress(onPressed); ).onPress(onPressed);
} }
} }

@ -170,8 +170,9 @@ class FooterActionButton {
child: AppFilledButton( child: AppFilledButton(
label: context.translation.assetRetiredPendingOpManagementApproval, label: context.translation.assetRetiredPendingOpManagementApproval,
buttonColor: AppColor.neutral140, buttonColor: AppColor.neutral140,
onPressed: () async { textColor: AppColor.neutral150,
}, fontSize: 12.toScreenWidth,
)); ));
} }
} }

Loading…
Cancel
Save