Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added app/flutter_devcamp/flutter_01.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
32 changes: 13 additions & 19 deletions app/flutter_devcamp/lib/main.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import 'dart:developer';

import 'package:flutter/material.dart';
import 'package:intl/intl.dart';

Expand All @@ -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),
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

DGFSDFS

primaryColorLight: AppConstants.hexToColor(AppConstants.appPrimaryColorLight),
dividerColor: AppConstants.hexToColor(AppConstants.appBackgroundColorGray),
Comment on lines +21 to +23
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dont need this part

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FGHHFGDH

textTheme: TextTheme(
caption: TextStyle(
color: AppConstants.hexToColor(
AppConstants.appPrimaryFontColorWhite)),
caption: TextStyle(color: AppConstants.hexToColor(AppConstants.appPrimaryFontColorWhite)),
),
),
home: const MyHomePage(title: 'FlutterDevcamp - 2022 - Welcome'),
Expand All @@ -49,14 +42,15 @@ class MyHomePage extends StatefulWidget {
class _MyHomePageState extends State<MyHomePage> {
int _counter = 1;
final nameController = TextEditingController();
String name = "";
String name = "Marius";
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
String name = "Marius";
String name = "Ramona";

final x = '';

var currentDay = DateTime.now().day;
void _printLatestValue() {
setState(() {
name = nameController.text;
});
}

var e = 4;
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just a change request

@override
void initState() {
super.initState();
Expand All @@ -68,11 +62,6 @@ class _MyHomePageState extends State<MyHomePage> {
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.
});
}

Expand All @@ -88,6 +77,8 @@ class _MyHomePageState extends State<MyHomePage> {
return Scaffold(
resizeToAvoidBottomInset: false,
appBar: AppBar(
elevation: 4,
backgroundColor: Colors.red,
Comment on lines +80 to +81
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

MULTIPLE SELECT

title: Text(widget.title),
),
body: Column(
Expand All @@ -111,8 +102,7 @@ class _MyHomePageState extends State<MyHomePage> {
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,
),
Expand All @@ -129,6 +119,10 @@ class _MyHomePageState extends State<MyHomePage> {
currentDay == _counter ? "🪙" : "$_counter times ",
style: Theme.of(context).textTheme.headline2,
),
Text(
currentDay == _counter ? "🪙" : "$_counter times de review ",
style: Theme.of(context).textTheme.headline2,
),
Comment on lines +122 to +125
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

MULTI LINE SELECTION COMMENT

Padding(
padding: const EdgeInsets.all(8.0),
child: TextField(
Expand Down
Binary file added screenshots/flutter_01.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.