feat: follow system option

This commit is contained in:
Rongjian Zhang
2020-01-14 18:13:07 +08:00
parent 80ab94df53
commit baf3e43045
36 changed files with 396 additions and 322 deletions

View File

@@ -17,7 +17,7 @@ class MutationButton extends StatelessWidget {
return CupertinoButton(
onPressed: onPressed,
minSize: 0,
color: theme.palette.primary,
color: theme.paletteOf(context).primary,
padding: EdgeInsets.symmetric(
horizontal: 14,
vertical: 5,
@@ -27,7 +27,7 @@ class MutationButton extends StatelessWidget {
text,
style: TextStyle(
fontSize: 18,
color: theme.palette.background,
color: theme.paletteOf(context).background,
),
),
);