Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
ASD_Detection
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-161
ASD_Detection
Commits
091e23b1
Commit
091e23b1
authored
Oct 31, 2023
by
Wijegunarathna K. P. S. G. G.
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change the home screen component names.
parent
a399c8c2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
88 additions
and
38 deletions
+88
-38
Frontend/lib/pages/Comp1/Step1/Comp1Step1First.dart
Frontend/lib/pages/Comp1/Step1/Comp1Step1First.dart
+19
-19
Frontend/lib/pages/Home.dart
Frontend/lib/pages/Home.dart
+69
-19
No files found.
Frontend/lib/pages/Comp1/Step1/Comp1Step1First.dart
View file @
091e23b1
...
@@ -10,33 +10,33 @@ class Comp1Step1First extends StatefulWidget {
...
@@ -10,33 +10,33 @@ class Comp1Step1First extends StatefulWidget {
}
}
class
_Comp1Step1FirstState
extends
State
<
Comp1Step1First
>
{
class
_Comp1Step1FirstState
extends
State
<
Comp1Step1First
>
{
void
nextPage
(
String
route
,
String
image
)
{
void
nextPage
(
String
route
,
String
image
)
{
Navigator
.
pushNamed
(
context
,
route
,
arguments:
{
'image'
:
image
});
Navigator
.
pushNamed
(
context
,
route
,
arguments:
{
'image'
:
image
});
}
}
@override
@override
Widget
build
(
BuildContext
context
)
{
Widget
build
(
BuildContext
context
)
{
return
Column
(
return
Column
(
children:
[
children:
[
SizedBox
(
height:
20
,),
SizedBox
(
Header
(
title:
'කැමති ක්රියාකාරකම තෝරන්න'
)
,
height:
20
,
SizedBox
(
height:
30
,
),
),
InkWell
(
Header
(
title:
'කැමති පින්තූරය තෝරන්න'
),
onTap:
()=>
nextPage
(
'/Comp1Step1Second'
,
'assets/images/Component 1 - img 03.png'
),
SizedBox
(
child:
ImageCard
(
image:
'assets/images/Component 1 - img 03.png'
)
height:
30
,
),
),
SizedBox
(
height:
30
,),
InkWell
(
InkWell
(
onTap:
()=>
nextPage
(
'/Comp1Step1Second'
,
'assets/images/Component 1 - img 04.png'
),
onTap:
()
=>
nextPage
(
child:
ImageCard
(
image:
'assets/images/Component 1 - img 04.png'
)
'/Comp1Step1Second'
,
'assets/images/Component 1 - img 03.png'
),
child:
ImageCard
(
image:
'assets/images/Component 1 - img 03.png'
)),
SizedBox
(
height:
30
,
),
),
InkWell
(
],
onTap:
()
=>
nextPage
(
'/Comp1Step1Second'
,
'assets/images/Component 1 - img 04.png'
),
child:
ImageCard
(
image:
'assets/images/Component 1 - img 04.png'
)),
],
);
);
}
}
}
}
Frontend/lib/pages/Home.dart
View file @
091e23b1
...
@@ -2,6 +2,46 @@ import 'package:Autism/widgets/ButtonXl.dart';
...
@@ -2,6 +2,46 @@ import 'package:Autism/widgets/ButtonXl.dart';
import
'package:flutter/material.dart'
;
import
'package:flutter/material.dart'
;
import
'package:Autism/MyStyles.dart'
as
MyStyles
;
import
'package:Autism/MyStyles.dart'
as
MyStyles
;
class
ButtonXL
extends
StatelessWidget
{
final
String
route
;
final
String
title
;
final
Color
bg
;
final
double
fontSize
;
// Added fontSize parameter
ButtonXL
({
required
this
.
route
,
required
this
.
title
,
required
this
.
bg
,
this
.
fontSize
=
22.0
,
// Default font size
});
@override
Widget
build
(
BuildContext
context
)
{
return
Container
(
width:
200.0
,
// Set the desired width
child:
ElevatedButton
(
onPressed:
()
{
Navigator
.
pushNamedAndRemoveUntil
(
context
,
route
,
(
r
)
=>
false
,
arguments:
{});
},
style:
ElevatedButton
.
styleFrom
(
primary:
bg
,
),
child:
Center
(
child:
Text
(
title
,
textAlign:
TextAlign
.
center
,
// Center the text horizontally
style:
TextStyle
(
color:
Colors
.
white
,
fontSize:
fontSize
,
),
),
),
),
);
}
}
class
Home
extends
StatefulWidget
{
class
Home
extends
StatefulWidget
{
const
Home
({
super
.
key
});
const
Home
({
super
.
key
});
...
@@ -17,37 +57,47 @@ class _HomeState extends State<Home> {
...
@@ -17,37 +57,47 @@ class _HomeState extends State<Home> {
arguments:
{});
arguments:
{});
}
}
double
buttonWidth
=
350.0
;
// Adjust the width
double
buttonHeight
=
110.0
;
// Adjust the width
return
Column
(
return
Column
(
children:
[
children:
[
ButtonXL
(
Container
(
width:
buttonWidth
,
height:
buttonHeight
,
child:
ButtonXL
(
route:
'/Comp1Welcome'
,
route:
'/Comp1Welcome'
,
title:
'පළමු කාර්යය'
,
title:
'කථන අසාමාන්යතාවයන් හදුනා ගැනීම'
,
bg:
MyStyles
.
cbtnPrimary
),
bg:
MyStyles
.
cbtnPrimary
,
),
),
SizedBox
(
SizedBox
(
height:
2
0
,
height:
4
0
,
),
),
ButtonXL
(
Container
(
width:
buttonWidth
,
height:
buttonHeight
,
child:
ButtonXL
(
route:
'/Comp2Page1'
,
route:
'/Comp2Page1'
,
title:
'දෙවන කාර්යය'
,
title:
'උච්චාරණ කුසලතා විශ්ලේෂණය'
,
bg:
MyStyles
.
cbtnPrimary
),
bg:
MyStyles
.
cbtnPrimary
,
SizedBox
(
),
height:
20
,
),
),
ButtonXL
(
route:
'/Comp3Page1'
,
title:
'තුන්වන කාර්යය'
,
bg:
MyStyles
.
cbtnPrimary
),
SizedBox
(
SizedBox
(
height:
2
0
,
height:
4
0
,
),
),
ButtonXL
(
Container
(
width:
buttonWidth
,
height:
buttonHeight
,
child:
ButtonXL
(
route:
'/Comp3Page1'
,
route:
'/Comp3Page1'
,
title:
'හතරවන කාර්යය'
,
title:
'පිළිතුරු වල නිරවද්යතාවය ඇගයීම'
,
bg:
MyStyles
.
cbtnPrimary
),
bg:
MyStyles
.
cbtnPrimary
,
),
),
SizedBox
(
SizedBox
(
height:
2
0
,
height:
4
0
,
),
),
//ButtonXL(route: '/home', title: 'හතරවන කාර්යය', bg: MyStyles.cbtnPrimary)
],
],
);
);
}
}
...
...
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