make speed dial work with any theme

This commit is contained in:
krawieck 2020-09-24 15:48:05 +02:00
parent 3809dcd0cc
commit f746ed9479
1 changed files with 3 additions and 0 deletions

View File

@ -160,10 +160,12 @@ class AccountsConfigPage extends HookWidget {
curve: Curves.bounceIn,
tooltip: 'Add account or instance',
child: Icon(Icons.add),
overlayColor: theme.canvasColor,
children: [
SpeedDialChild(
child: Icon(Icons.person_add),
label: 'Add account',
labelBackgroundColor: theme.canvasColor,
onTap: () => showCupertinoModalPopup(
context: context,
builder: (_) =>
@ -171,6 +173,7 @@ class AccountsConfigPage extends HookWidget {
),
SpeedDialChild(
child: Icon(Icons.dns),
labelBackgroundColor: theme.canvasColor,
label: 'Add instance',
onTap: () => showCupertinoModalPopup(
context: context, builder: (_) => AddInstancePage()),