use Icons in auth pckage

This commit is contained in:
2025-04-09 13:59:22 +02:00
parent a6caf4aa6a
commit 9eeac474ce
3 changed files with 76 additions and 6 deletions

View File

@@ -287,6 +287,36 @@ class _SignInState extends State<SignIn> {
);
}
MIHAction getSecondaryActionButton() {
return MIHAction(
icon: Padding(
padding: const EdgeInsets.all(10.0),
child: SizedBox(
width: 150,
child: MIHButton(
onTap: () {
Navigator.of(context).pushNamed(
'/about',
arguments: 0,
);
},
buttonText: "Install MIH",
buttonColor:
MzanziInnovationHub.of(context)!.theme.secondaryColor(),
textColor: MzanziInnovationHub.of(context)!.theme.primaryColor(),
),
),
),
iconSize: 35,
onTap: () {
Navigator.of(context).pushNamed(
'/about',
arguments: 0,
);
},
);
}
MIHAction getActionButton() {
return MIHAction(
icon: Padding(
@@ -637,7 +667,7 @@ class _SignInState extends State<SignIn> {
return MIHLayoutBuilder(
actionButton: getActionButton(),
header: getHeader(),
secondaryActionButton: null,
secondaryActionButton: getSecondaryActionButton(),
body: getBody(),
actionDrawer: null,
secondaryActionDrawer: null,