fix snackbar persistance, update dependancies

This commit is contained in:
yaso 2026-07-03 09:34:35 +02:00
parent 5a91d1e98e
commit 303022a352
9 changed files with 79 additions and 43 deletions

View file

@ -116,6 +116,21 @@ class _ExampleMihPackageState extends State<ExampleMihPackage> {
buttonColor: MihColors.green(),
child: Text("Press"),
),
MihButton(
width: 300,
onPressed: () {
ScaffoldMessenger.of(context).showSnackBar(
MihSnackBar(
child: Text("Tester"),
duration: 2,
backgroundColor: MihColors.secondary(),
closeIconColor: MihColors.red(),
),
);
},
buttonColor: MihColors.green(),
child: Text("Snack Test"),
),
],
),
),