fix snackbar persistance, update dependancies
This commit is contained in:
parent
5a91d1e98e
commit
303022a352
9 changed files with 79 additions and 43 deletions
|
|
@ -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"),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue