More material 3 updates

This commit is contained in:
Juan Gilsanz Polo 2023-01-25 19:55:34 +01:00
parent ad51937d01
commit 386af8e809
17 changed files with 304 additions and 279 deletions

View file

@ -321,7 +321,6 @@ class _ClientsListState extends State<ClientsList> {
: -70,
right: 20,
child: FloatingActionButton(
backgroundColor: Theme.of(context).floatingActionButtonTheme.backgroundColor,
onPressed: () {
showModalBottomSheet(
context: context,
@ -333,10 +332,7 @@ class _ClientsListState extends State<ClientsList> {
isScrollControlled: true
);
},
child: Icon(
Icons.add,
color: Theme.of(context).floatingActionButtonTheme.foregroundColor,
),
child: const Icon(Icons.add),
),
)
]

View file

@ -184,11 +184,7 @@ class DhcpLeases extends StatelessWidget {
floatingActionButton: staticLeases == true
? FloatingActionButton(
onPressed: openAddStaticLease,
backgroundColor: Theme.of(context).floatingActionButtonTheme.backgroundColor,
child: Icon(
Icons.add,
color: Theme.of(context).floatingActionButtonTheme.foregroundColor,
),
child: const Icon(Icons.add),
)
: null,
);

View file

@ -286,7 +286,6 @@ class _DnsRewritesWidgetState extends State<DnsRewritesWidget> {
),
body: generateBody(),
floatingActionButton: FloatingActionButton(
backgroundColor: Theme.of(context).floatingActionButtonTheme.backgroundColor,
onPressed: () => {
showModalBottomSheet(
context: context,
@ -297,10 +296,7 @@ class _DnsRewritesWidgetState extends State<DnsRewritesWidget> {
isScrollControlled: true
)
},
child: Icon(
Icons.add,
color: Theme.of(context).floatingActionButtonTheme.foregroundColor,
),
child: const Icon(Icons.add),
),
);
}