Add theme switcher

This commit is contained in:
Ricardo Markiewicz
2020-01-21 12:44:09 -03:00
parent a05d2a8f48
commit d181afb606
21 changed files with 697 additions and 295 deletions
+3 -3
View File
@@ -1,6 +1,6 @@
import 'dart:io';
import 'package:como_gasto/category_selection_widget.dart';
import 'package:como_gasto/others/category_selection_widget.dart';
import 'package:flutter/material.dart';
import 'package:font_awesome_flutter/font_awesome_flutter.dart';
import 'package:image_picker/image_picker.dart';
@@ -292,7 +292,7 @@ class _AddPageState extends State<AddPage> with SingleTickerProviderStateMixin {
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(
buttonWidth * (1 - _buttonAnimation.value)),
color: Colors.blueAccent,
color: Theme.of(context).floatingActionButtonTheme.backgroundColor ?? Theme.of(context).primaryColor,
),
child: MaterialButton(
onPressed: () {},
@@ -314,7 +314,7 @@ class _AddPageState extends State<AddPage> with SingleTickerProviderStateMixin {
right: 0,
child: Builder(builder: (BuildContext context) {
return Container(
decoration: BoxDecoration(color: Colors.blueAccent),
decoration: BoxDecoration(color: Theme.of(context).floatingActionButtonTheme.backgroundColor ?? Theme.of(context).primaryColor),
child: MaterialButton(
child: Row(
mainAxisAlignment: MainAxisAlignment.center,