diff --git a/app/flutter_devcamp/flutter_01.png b/app/flutter_devcamp/flutter_01.png new file mode 100644 index 0000000..c18f60a Binary files /dev/null and b/app/flutter_devcamp/flutter_01.png differ diff --git a/app/flutter_devcamp/lib/main.dart b/app/flutter_devcamp/lib/main.dart index 14354d2..54ed5bc 100644 --- a/app/flutter_devcamp/lib/main.dart +++ b/app/flutter_devcamp/lib/main.dart @@ -1,5 +1,3 @@ -import 'dart:developer'; - import 'package:flutter/material.dart'; import 'package:intl/intl.dart'; @@ -20,16 +18,11 @@ class MyApp extends StatelessWidget { title: 'FlutterDevcamp - 2022 - Welcome', theme: ThemeData( primaryColor: AppConstants.hexToColor(AppConstants.appPrimaryColor), - backgroundColor: - AppConstants.hexToColor(AppConstants.appBackgroundColor), - primaryColorLight: - AppConstants.hexToColor(AppConstants.appPrimaryColorLight), - dividerColor: - AppConstants.hexToColor(AppConstants.appBackgroundColorGray), + backgroundColor: AppConstants.hexToColor(AppConstants.appBackgroundColor), + primaryColorLight: AppConstants.hexToColor(AppConstants.appPrimaryColorLight), + dividerColor: AppConstants.hexToColor(AppConstants.appBackgroundColorGray), textTheme: TextTheme( - caption: TextStyle( - color: AppConstants.hexToColor( - AppConstants.appPrimaryFontColorWhite)), + caption: TextStyle(color: AppConstants.hexToColor(AppConstants.appPrimaryFontColorWhite)), ), ), home: const MyHomePage(title: 'FlutterDevcamp - 2022 - Welcome'), @@ -49,7 +42,7 @@ class MyHomePage extends StatefulWidget { class _MyHomePageState extends State { int _counter = 1; final nameController = TextEditingController(); - String name = ""; + String name = "Marius"; var currentDay = DateTime.now().day; void _printLatestValue() { setState(() { @@ -57,6 +50,7 @@ class _MyHomePageState extends State { }); } + var e = 4; @override void initState() { super.initState(); @@ -68,11 +62,6 @@ class _MyHomePageState extends State { void _incrementCounter() { setState(() { (currentDay < _counter) ? _counter = 1 : _counter++; - // This call to setState tells the Flutter framework that something has - // changed in this State, which causes it to rerun the build method below - // so that the display can reflect the updated values. If we changed - // _counter without calling setState(), then the build method would not be - // called again, and so nothing would appear to happen. }); } @@ -88,6 +77,8 @@ class _MyHomePageState extends State { return Scaffold( resizeToAvoidBottomInset: false, appBar: AppBar( + elevation: 4, + backgroundColor: Colors.red, title: Text(widget.title), ), body: Column( @@ -111,8 +102,7 @@ class _MyHomePageState extends State { child: Text( '#flutterdevcamp - London ${DateFormat.MMMMd().format(DateTime.now())} ', style: TextStyle( - color: AppConstants.hexToColor( - AppConstants.appPrimaryColorLight), + color: AppConstants.hexToColor(AppConstants.appPrimaryColorLight), fontSize: 24, fontWeight: FontWeight.w600, ), @@ -129,6 +119,10 @@ class _MyHomePageState extends State { currentDay == _counter ? "🪙" : "$_counter times ", style: Theme.of(context).textTheme.headline2, ), + Text( + currentDay == _counter ? "🪙" : "$_counter times de review ", + style: Theme.of(context).textTheme.headline2, + ), Padding( padding: const EdgeInsets.all(8.0), child: TextField( diff --git a/screenshots/flutter_01.png b/screenshots/flutter_01.png new file mode 100644 index 0000000..c18f60a Binary files /dev/null and b/screenshots/flutter_01.png differ