Add custom icons
This commit is contained in:
Executable
BIN
Binary file not shown.
Executable
+30
@@ -0,0 +1,30 @@
|
|||||||
|
/// Flutter icons ComoGastoIcons
|
||||||
|
/// Copyright (C) 2020 by original authors @ fluttericon.com, fontello.com
|
||||||
|
/// This font was generated by FlutterIcon.com, which is derived from Fontello.
|
||||||
|
///
|
||||||
|
/// To use this font, place it in your fonts/ directory and include the
|
||||||
|
/// following in your pubspec.yaml
|
||||||
|
///
|
||||||
|
/// flutter:
|
||||||
|
/// fonts:
|
||||||
|
/// - family: ComoGastoIcons
|
||||||
|
/// fonts:
|
||||||
|
/// - asset: fonts/ComoGastoIcons.ttf
|
||||||
|
///
|
||||||
|
///
|
||||||
|
///
|
||||||
|
import 'package:flutter/widgets.dart';
|
||||||
|
|
||||||
|
class ComoGastoIcons {
|
||||||
|
ComoGastoIcons._();
|
||||||
|
|
||||||
|
static const _kFontFam = 'ComoGastoIcons';
|
||||||
|
|
||||||
|
static const IconData camera = const IconData(0xe800, fontFamily: _kFontFam);
|
||||||
|
static const IconData cart = const IconData(0xe801, fontFamily: _kFontFam);
|
||||||
|
static const IconData calendar = const IconData(0xe802, fontFamily: _kFontFam);
|
||||||
|
static const IconData settings = const IconData(0xe803, fontFamily: _kFontFam);
|
||||||
|
static const IconData pie_chart = const IconData(0xe804, fontFamily: _kFontFam);
|
||||||
|
static const IconData stats_bars = const IconData(0xe805, fontFamily: _kFontFam);
|
||||||
|
static const IconData plus = const IconData(0xe806, fontFamily: _kFontFam);
|
||||||
|
}
|
||||||
@@ -7,6 +7,7 @@ import 'package:image_picker/image_picker.dart';
|
|||||||
import 'package:provider/provider.dart';
|
import 'package:provider/provider.dart';
|
||||||
import 'package:local_auth/local_auth.dart';
|
import 'package:local_auth/local_auth.dart';
|
||||||
|
|
||||||
|
import '../como_gasto_icons.dart';
|
||||||
import '../expenses_repository.dart';
|
import '../expenses_repository.dart';
|
||||||
|
|
||||||
class AddPage extends StatefulWidget {
|
class AddPage extends StatefulWidget {
|
||||||
@@ -95,7 +96,7 @@ class _AddPageState extends State<AddPage> with SingleTickerProviderStateMixin {
|
|||||||
centerTitle: false,
|
centerTitle: false,
|
||||||
actions: <Widget>[
|
actions: <Widget>[
|
||||||
IconButton(
|
IconButton(
|
||||||
icon: Icon(Icons.calendar_today),
|
icon: Icon(ComoGastoIcons.calendar),
|
||||||
color: Colors.grey,
|
color: Colors.grey,
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
showDatePicker(
|
showDatePicker(
|
||||||
@@ -116,7 +117,7 @@ class _AddPageState extends State<AddPage> with SingleTickerProviderStateMixin {
|
|||||||
},
|
},
|
||||||
),
|
),
|
||||||
IconButton(
|
IconButton(
|
||||||
icon: Icon(Icons.camera_alt),
|
icon: Icon(ComoGastoIcons.camera),
|
||||||
color: Colors.grey,
|
color: Colors.grey,
|
||||||
onPressed: () async {
|
onPressed: () async {
|
||||||
var image =
|
var image =
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
import 'package:cloud_firestore/cloud_firestore.dart';
|
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:como_gasto/others/month_widget.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:font_awesome_flutter/font_awesome_flutter.dart';
|
import 'package:font_awesome_flutter/font_awesome_flutter.dart';
|
||||||
@@ -61,19 +62,19 @@ class _HomePageState extends State<HomePage> {
|
|||||||
mainAxisSize: MainAxisSize.max,
|
mainAxisSize: MainAxisSize.max,
|
||||||
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
|
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
|
||||||
children: <Widget>[
|
children: <Widget>[
|
||||||
_bottomAction(FontAwesomeIcons.chartLine, () {
|
_bottomAction(ComoGastoIcons.stats_bars, () {
|
||||||
setState(() {
|
setState(() {
|
||||||
currentType = GraphType.LINES;
|
currentType = GraphType.LINES;
|
||||||
});
|
});
|
||||||
}),
|
}),
|
||||||
_bottomAction(FontAwesomeIcons.chartPie, () {
|
_bottomAction(ComoGastoIcons.pie_chart, () {
|
||||||
setState(() {
|
setState(() {
|
||||||
currentType = GraphType.PIE;
|
currentType = GraphType.PIE;
|
||||||
});
|
});
|
||||||
}),
|
}),
|
||||||
SizedBox(width: 48.0),
|
SizedBox(width: 48.0),
|
||||||
_bottomAction(FontAwesomeIcons.wallet, () {}),
|
_bottomAction(ComoGastoIcons.cart, () {}),
|
||||||
_bottomAction(Icons.settings, () {
|
_bottomAction(ComoGastoIcons.settings, () {
|
||||||
|
|
||||||
Navigator.pushNamed(context, '/settings');
|
Navigator.pushNamed(context, '/settings');
|
||||||
}),
|
}),
|
||||||
@@ -84,7 +85,7 @@ class _HomePageState extends State<HomePage> {
|
|||||||
floatingActionButton: RectGetter(
|
floatingActionButton: RectGetter(
|
||||||
key: globalKey,
|
key: globalKey,
|
||||||
child: FloatingActionButton(
|
child: FloatingActionButton(
|
||||||
child: Icon(Icons.add),
|
child: Icon(ComoGastoIcons.plus),
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
buttonRect = RectGetter.getRectFromKey(globalKey);
|
buttonRect = RectGetter.getRectFromKey(globalKey);
|
||||||
|
|
||||||
|
|||||||
+5
-11
@@ -78,17 +78,11 @@ flutter:
|
|||||||
# "family" key with the font family name, and a "fonts" key with a
|
# "family" key with the font family name, and a "fonts" key with a
|
||||||
# list giving the asset and other descriptors for the font. For
|
# list giving the asset and other descriptors for the font. For
|
||||||
# example:
|
# example:
|
||||||
# fonts:
|
fonts:
|
||||||
# - family: Schyler
|
- family: ComoGastoIcons
|
||||||
# fonts:
|
fonts:
|
||||||
# - asset: fonts/Schyler-Regular.ttf
|
- asset: assets/ComoGastoIcons.ttf
|
||||||
# - asset: fonts/Schyler-Italic.ttf
|
|
||||||
# style: italic
|
|
||||||
# - family: Trajan Pro
|
|
||||||
# fonts:
|
|
||||||
# - asset: fonts/TrajanPro.ttf
|
|
||||||
# - asset: fonts/TrajanPro_Bold.ttf
|
|
||||||
# weight: 700
|
|
||||||
#
|
#
|
||||||
# For details regarding fonts from package dependencies,
|
# For details regarding fonts from package dependencies,
|
||||||
# see https://flutter.io/custom-fonts/#from-packages
|
# see https://flutter.io/custom-fonts/#from-packages
|
||||||
|
|||||||
Reference in New Issue
Block a user