Add custom icons

This commit is contained in:
Ricardo Markiewicz
2020-01-24 11:03:05 -03:00
parent d181afb606
commit cc3145d44e
5 changed files with 44 additions and 18 deletions
+3 -2
View File
@@ -7,6 +7,7 @@ import 'package:image_picker/image_picker.dart';
import 'package:provider/provider.dart';
import 'package:local_auth/local_auth.dart';
import '../como_gasto_icons.dart';
import '../expenses_repository.dart';
class AddPage extends StatefulWidget {
@@ -95,7 +96,7 @@ class _AddPageState extends State<AddPage> with SingleTickerProviderStateMixin {
centerTitle: false,
actions: <Widget>[
IconButton(
icon: Icon(Icons.calendar_today),
icon: Icon(ComoGastoIcons.calendar),
color: Colors.grey,
onPressed: () {
showDatePicker(
@@ -116,7 +117,7 @@ class _AddPageState extends State<AddPage> with SingleTickerProviderStateMixin {
},
),
IconButton(
icon: Icon(Icons.camera_alt),
icon: Icon(ComoGastoIcons.camera),
color: Colors.grey,
onPressed: () async {
var image =
+6 -5
View File
@@ -1,4 +1,5 @@
import 'package:cloud_firestore/cloud_firestore.dart';
import 'package:como_gasto/como_gasto_icons.dart';
import 'package:como_gasto/others/month_widget.dart';
import 'package:flutter/material.dart';
import 'package:font_awesome_flutter/font_awesome_flutter.dart';
@@ -61,19 +62,19 @@ class _HomePageState extends State<HomePage> {
mainAxisSize: MainAxisSize.max,
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
children: <Widget>[
_bottomAction(FontAwesomeIcons.chartLine, () {
_bottomAction(ComoGastoIcons.stats_bars, () {
setState(() {
currentType = GraphType.LINES;
});
}),
_bottomAction(FontAwesomeIcons.chartPie, () {
_bottomAction(ComoGastoIcons.pie_chart, () {
setState(() {
currentType = GraphType.PIE;
});
}),
SizedBox(width: 48.0),
_bottomAction(FontAwesomeIcons.wallet, () {}),
_bottomAction(Icons.settings, () {
_bottomAction(ComoGastoIcons.cart, () {}),
_bottomAction(ComoGastoIcons.settings, () {
Navigator.pushNamed(context, '/settings');
}),
@@ -84,7 +85,7 @@ class _HomePageState extends State<HomePage> {
floatingActionButton: RectGetter(
key: globalKey,
child: FloatingActionButton(
child: Icon(Icons.add),
child: Icon(ComoGastoIcons.plus),
onPressed: () {
buttonRect = RectGetter.getRectFromKey(globalKey);