Commit a0efbdad authored by Ravishan S.A.A. IT20241032's avatar Ravishan S.A.A. IT20241032

Merge branch 'it20241032' into 'master'

updated home page

See merge request !2
parents 06fdcded b3a515c7
import 'package:client/disease/DiseasePrediction.dart';
import 'package:client/forecast/Forecast.dart';
import 'package:client/grades/GradesPrediction.dart';
import 'package:flutter/material.dart';
import 'package:flutter/src/widgets/framework.dart';
import 'package:flutter/src/widgets/placeholder.dart';
......@@ -13,7 +16,23 @@ class WelcomePage extends StatelessWidget {
var height = MediaQuery.of(context).size.height;
return Scaffold(
body: Container(
padding: EdgeInsets.symmetric(
horizontal: 20,
vertical: 30,
),
width: width,
height: height,
decoration: BoxDecoration(
color: Colors.black,
image: DecorationImage(
image: NetworkImage(
"https://images.unsplash.com/photo-1550807014-1236e91b92d4?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=980&q=80",
),
opacity: 0.4,
fit: BoxFit.cover,
),
),
child: Column(
children: [
Text(
"Welcome",
......@@ -39,6 +58,7 @@ class WelcomePage extends StatelessWidget {
Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
//price_prediction
ModuleCard(
bgColor: Colors.indigo.shade900,
title: Text(
......@@ -59,6 +79,7 @@ class WelcomePage extends StatelessWidget {
);
},
),
//ai_based_ommunity
ModuleCard(
bgColor: Colors.white,
title: Text(
......@@ -81,6 +102,7 @@ class WelcomePage extends StatelessWidget {
Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
//cinnamon_grading
ModuleCard(
bgColor: Colors.lime,
title: Text(
......@@ -102,6 +124,7 @@ class WelcomePage extends StatelessWidget {
);
},
),
//rbd_disease_identification
ModuleCard(
bgColor: Colors.red,
title: Text(
......@@ -127,7 +150,7 @@ class WelcomePage extends StatelessWidget {
),
],
),
),
);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment