From 692407647d50f340881a7b0481b41c184991d189 Mon Sep 17 00:00:00 2001 From: Daniel Cujba Date: Sun, 20 Nov 2022 12:30:49 +0200 Subject: [PATCH] a --- lib/main.dart | 49 +++++++++++++++++++++++++++++-------------------- 1 file changed, 29 insertions(+), 20 deletions(-) diff --git a/lib/main.dart b/lib/main.dart index 68261f3..e8038af 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -24,7 +24,10 @@ class MyApp extends StatelessWidget { backgroundColor: Colors.transparent, elevation: 0.0, centerTitle: true, - titleTextStyle: TextStyle(color: Colors.white, fontSize: 30), + titleTextStyle: TextStyle( + color: Colors.white, + fontSize: 30, + ), )), home: const MyHomePage(title: 'Health Homie'), ); @@ -41,7 +44,7 @@ class MyHomePage extends StatefulWidget { class _MyHomePageState extends State { int _selectedIndex = 1; - int counter = 0; + int counter = 5; bool _value = false; int _completed_tasks = 10; List tasks = []; @@ -534,10 +537,10 @@ class _MyHomePageState extends State { width: MediaQuery.of(context).size.width * 0.86, animation: true, lineHeight: 20.0, - animationDuration: 2500, - percent: 0.75, + animationDuration: 1000, + percent: 0.724, barRadius: const Radius.circular(16), - center: Text("75.0%"), + center: Text("72.4%"), progressColor: Colors.deepPurple, ), ), @@ -569,13 +572,14 @@ class _MyHomePageState extends State { Expanded( flex: 1, child: Container( - child: Text( - "\nScreen Time", - style: TextStyle( - color: Colors.black, - fontSize: 25, - fontWeight: FontWeight.w500), - ))), + child: Text( + "\nScreen Time", + style: TextStyle( + color: Colors.black, + fontSize: 25, + fontWeight: FontWeight.w500), + ), + )), Expanded( flex: 1, child: Container( @@ -585,7 +589,8 @@ class _MyHomePageState extends State { new CircularPercentIndicator( radius: 35.0, lineWidth: 10.0, - percent: 0.2, + percent: 0.33, + animateFromLastPercent: true, center: new Text( "8/6\nhrs", style: TextStyle( @@ -610,8 +615,8 @@ class _MyHomePageState extends State { ), SpannableGridCellData( id: 3, - column: 1, - row: 6, + column: 3, + row: 4, columnSpan: 2, rowSpan: 2, child: Container( @@ -677,12 +682,16 @@ class _MyHomePageState extends State { ), SpannableGridCellData( id: 4, - column: 3, - row: 4, - rowSpan: 4, - columnSpan: 2, + column: 1, + row: 6, + rowSpan: 2, + columnSpan: 4, child: Container( - child: Center(child: Text("Text 4")), + child: Center( + child: Text( + "Quote of the day\n\nā€œA healthy outside starts from the inside.ā€\n\n – Robert Urich – \n", + style: TextStyle(fontStyle: FontStyle.italic, fontSize: 15), + )), decoration: BoxDecoration( border: Border.all( width: 5, color: Color.fromARGB(255, 115, 115, 130)),