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 neutral130 = Color(0xffE0E0E0);
static const Color neutral140 = Color(0xffE6E6E6);
static const Color neutral150 = Color(0xffA1A1A1);
//background

@ -8,6 +8,7 @@ class AppFilledButton extends StatelessWidget {
final VoidCallback? onPressed;
final String label;
final bool maxWidth, loading;
final double? fontSize;
final bool showIcon;
final Widget? icon;
final Color? buttonColor;
@ -15,7 +16,17 @@ class AppFilledButton extends StatelessWidget {
final bool showBorder;
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);
@override
@ -39,14 +50,16 @@ class AppFilledButton extends StatelessWidget {
),
)
: showIcon && icon != null
? Row(
mainAxisAlignment: MainAxisAlignment.center,
children: [
? Row(mainAxisAlignment: MainAxisAlignment.center, children: [
icon!,
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),
align: TextAlign.center,
fontSize: fontSize ?? 16.toScreenWidth,
),
).onPress(onPressed);
}
}

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

Loading…
Cancel
Save