a
This commit is contained in:
+23
-14
@@ -24,7 +24,10 @@ class MyApp extends StatelessWidget {
|
|||||||
backgroundColor: Colors.transparent,
|
backgroundColor: Colors.transparent,
|
||||||
elevation: 0.0,
|
elevation: 0.0,
|
||||||
centerTitle: true,
|
centerTitle: true,
|
||||||
titleTextStyle: TextStyle(color: Colors.white, fontSize: 30),
|
titleTextStyle: TextStyle(
|
||||||
|
color: Colors.white,
|
||||||
|
fontSize: 30,
|
||||||
|
),
|
||||||
)),
|
)),
|
||||||
home: const MyHomePage(title: 'Health Homie'),
|
home: const MyHomePage(title: 'Health Homie'),
|
||||||
);
|
);
|
||||||
@@ -41,7 +44,7 @@ class MyHomePage extends StatefulWidget {
|
|||||||
|
|
||||||
class _MyHomePageState extends State<MyHomePage> {
|
class _MyHomePageState extends State<MyHomePage> {
|
||||||
int _selectedIndex = 1;
|
int _selectedIndex = 1;
|
||||||
int counter = 0;
|
int counter = 5;
|
||||||
bool _value = false;
|
bool _value = false;
|
||||||
int _completed_tasks = 10;
|
int _completed_tasks = 10;
|
||||||
List<Widget> tasks = [];
|
List<Widget> tasks = [];
|
||||||
@@ -534,10 +537,10 @@ class _MyHomePageState extends State<MyHomePage> {
|
|||||||
width: MediaQuery.of(context).size.width * 0.86,
|
width: MediaQuery.of(context).size.width * 0.86,
|
||||||
animation: true,
|
animation: true,
|
||||||
lineHeight: 20.0,
|
lineHeight: 20.0,
|
||||||
animationDuration: 2500,
|
animationDuration: 1000,
|
||||||
percent: 0.75,
|
percent: 0.724,
|
||||||
barRadius: const Radius.circular(16),
|
barRadius: const Radius.circular(16),
|
||||||
center: Text("75.0%"),
|
center: Text("72.4%"),
|
||||||
progressColor: Colors.deepPurple,
|
progressColor: Colors.deepPurple,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
@@ -575,7 +578,8 @@ class _MyHomePageState extends State<MyHomePage> {
|
|||||||
color: Colors.black,
|
color: Colors.black,
|
||||||
fontSize: 25,
|
fontSize: 25,
|
||||||
fontWeight: FontWeight.w500),
|
fontWeight: FontWeight.w500),
|
||||||
))),
|
),
|
||||||
|
)),
|
||||||
Expanded(
|
Expanded(
|
||||||
flex: 1,
|
flex: 1,
|
||||||
child: Container(
|
child: Container(
|
||||||
@@ -585,7 +589,8 @@ class _MyHomePageState extends State<MyHomePage> {
|
|||||||
new CircularPercentIndicator(
|
new CircularPercentIndicator(
|
||||||
radius: 35.0,
|
radius: 35.0,
|
||||||
lineWidth: 10.0,
|
lineWidth: 10.0,
|
||||||
percent: 0.2,
|
percent: 0.33,
|
||||||
|
animateFromLastPercent: true,
|
||||||
center: new Text(
|
center: new Text(
|
||||||
"8/6\nhrs",
|
"8/6\nhrs",
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
@@ -610,8 +615,8 @@ class _MyHomePageState extends State<MyHomePage> {
|
|||||||
),
|
),
|
||||||
SpannableGridCellData(
|
SpannableGridCellData(
|
||||||
id: 3,
|
id: 3,
|
||||||
column: 1,
|
column: 3,
|
||||||
row: 6,
|
row: 4,
|
||||||
columnSpan: 2,
|
columnSpan: 2,
|
||||||
rowSpan: 2,
|
rowSpan: 2,
|
||||||
child: Container(
|
child: Container(
|
||||||
@@ -677,12 +682,16 @@ class _MyHomePageState extends State<MyHomePage> {
|
|||||||
),
|
),
|
||||||
SpannableGridCellData(
|
SpannableGridCellData(
|
||||||
id: 4,
|
id: 4,
|
||||||
column: 3,
|
column: 1,
|
||||||
row: 4,
|
row: 6,
|
||||||
rowSpan: 4,
|
rowSpan: 2,
|
||||||
columnSpan: 2,
|
columnSpan: 4,
|
||||||
child: Container(
|
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(
|
decoration: BoxDecoration(
|
||||||
border: Border.all(
|
border: Border.all(
|
||||||
width: 5, color: Color.fromARGB(255, 115, 115, 130)),
|
width: 5, color: Color.fromARGB(255, 115, 115, 130)),
|
||||||
|
|||||||
Reference in New Issue
Block a user