todo save, popup, dismiss show dialog

This commit is contained in:
2023-09-28 23:27:41 +02:00
parent 9b712120a0
commit 37719bd696
5 changed files with 228 additions and 118 deletions

18
lib/utils/my_button.dart Normal file
View File

@@ -0,0 +1,18 @@
import 'package:flutter/material.dart';
class MyButton extends StatelessWidget {
MyButton({Key? key, required this.text, required this.onPressed})
: super(key: key);
final String text;
VoidCallback onPressed;
@override
Widget build(BuildContext context) {
return MaterialButton(
onPressed: onPressed,
color: Theme.of(context).primaryColor,
child: Text(text),
);
}
}