Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
2023-156
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
2023-156
2023-156
Commits
a8f47bb4
Commit
a8f47bb4
authored
May 22, 2023
by
Ravishan S.A.A
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
project welcome page initial
parent
1ce2159c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
184 additions
and
0 deletions
+184
-0
lib/welcome/WelcomePage.dart
lib/welcome/WelcomePage.dart
+184
-0
No files found.
lib/welcome/WelcomePage.dart
0 → 100644
View file @
a8f47bb4
import
'package:flutter/material.dart'
;
import
'package:flutter/src/widgets/framework.dart'
;
import
'package:flutter/src/widgets/placeholder.dart'
;
import
'package:google_fonts/google_fonts.dart'
;
import
'package:lottie/lottie.dart'
;
class
WelcomePage
extends
StatelessWidget
{
const
WelcomePage
({
super
.
key
});
@override
Widget
build
(
BuildContext
context
)
{
var
width
=
MediaQuery
.
of
(
context
).
size
.
width
;
var
height
=
MediaQuery
.
of
(
context
).
size
.
height
;
return
Scaffold
(
body:
Container
(
children:
[
Text
(
"Welcome"
,
style:
GoogleFonts
.
abel
(
color:
Colors
.
white
,
fontWeight:
FontWeight
.
w900
,
fontSize:
width
/
5
,
),
),
Text
(
"The all-in-one AI powered
\n
Cinnamon cultivation help assistant"
,
style:
GoogleFonts
.
abel
(
color:
Colors
.
white70
,
fontSize:
width
/
15
,
fontStyle:
FontStyle
.
italic
,
fontWeight:
FontWeight
.
w700
,
),
textAlign:
TextAlign
.
center
,
),
SizedBox
(
height:
height
/
10
,
),
Row
(
mainAxisAlignment:
MainAxisAlignment
.
spaceBetween
,
children:
[
ModuleCard
(
bgColor:
Colors
.
indigo
.
shade900
,
title:
Text
(
"Forecasting"
,
style:
GoogleFonts
.
poppins
(
color:
Colors
.
white
,
fontWeight:
FontWeight
.
bold
,
fontSize:
width
/
21
,
),
textAlign:
TextAlign
.
center
,
),
lottie:
"assets/lottie/90021-graph-stats.json"
,
onTap:
()
{
Navigator
.
of
(
context
).
push
(
MaterialPageRoute
(
builder:
(
context
)
=>
Forecast
(),
),
);
},
),
ModuleCard
(
bgColor:
Colors
.
white
,
title:
Text
(
"Community"
,
style:
GoogleFonts
.
poppins
(
color:
Colors
.
black
,
fontWeight:
FontWeight
.
bold
,
fontSize:
width
/
21
,
),
textAlign:
TextAlign
.
center
,
),
lottie:
"assets/lottie/99782-help.json"
,
onTap:
()
{},
),
],
),
SizedBox
(
height:
30
,
),
Row
(
mainAxisAlignment:
MainAxisAlignment
.
spaceBetween
,
children:
[
ModuleCard
(
bgColor:
Colors
.
lime
,
title:
Text
(
"Grading"
,
style:
GoogleFonts
.
poppins
(
color:
Colors
.
black
,
fontWeight:
FontWeight
.
bold
,
fontSize:
width
/
21
,
),
textAlign:
TextAlign
.
center
,
),
lottie:
"assets/lottie/112180-paper-notebook-writing-animation.json"
,
onTap:
()
{
Navigator
.
of
(
context
).
push
(
MaterialPageRoute
(
builder:
(
context
)
=>
GradesPrediction
(),
),
);
},
),
ModuleCard
(
bgColor:
Colors
.
red
,
title:
Text
(
"Diseases"
,
style:
GoogleFonts
.
poppins
(
color:
Colors
.
white
,
fontWeight:
FontWeight
.
bold
,
fontSize:
width
/
21
,
),
textAlign:
TextAlign
.
center
,
),
lottie:
"assets/lottie/102131-hand-holding-plant-seedling.json"
,
onTap:
()
{
Navigator
.
of
(
context
).
push
(
MaterialPageRoute
(
builder:
(
context
)
=>
DiseasePrediction
(),
),
);
},
),
],
),
],
),
);
}
}
class
ModuleCard
extends
StatelessWidget
{
ModuleCard
({
super
.
key
,
required
this
.
bgColor
,
required
this
.
title
,
required
this
.
lottie
,
this
.
onTap
,
});
Color
bgColor
;
Text
title
;
String
lottie
;
void
Function
()?
onTap
;
@override
Widget
build
(
BuildContext
context
)
{
var
width
=
MediaQuery
.
of
(
context
).
size
.
width
;
var
height
=
MediaQuery
.
of
(
context
).
size
.
height
;
return
GestureDetector
(
onTap:
onTap
,
child:
Card
(
elevation:
10
,
shape:
RoundedRectangleBorder
(
borderRadius:
BorderRadius
.
circular
(
15.0
),
),
color:
bgColor
,
child:
Container
(
width:
width
/
2.5
,
height:
height
/
4
,
padding:
EdgeInsets
.
symmetric
(
vertical:
height
/
40
,
horizontal:
width
/
20
,
),
child:
Center
(
child:
Column
(
crossAxisAlignment:
CrossAxisAlignment
.
center
,
children:
[
LottieBuilder
.
asset
(
lottie
,
reverse:
true
,
width:
width
/
3
,
),
title
,
],
),
),
),
),
);
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment