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
ad2f4b26
Commit
ad2f4b26
authored
Nov 01, 2023
by
Wijegunarathna K. P. S. G. G.
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add instructions to the result page.
parent
8e9ad45d
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
151 additions
and
16 deletions
+151
-16
Frontend/lib/MyStyles.dart
Frontend/lib/MyStyles.dart
+4
-1
Frontend/lib/main.dart
Frontend/lib/main.dart
+8
-1
Frontend/lib/pages/Comp1/Comp1Intro.dart
Frontend/lib/pages/Comp1/Comp1Intro.dart
+24
-12
Frontend/lib/pages/Comp1/Comp1Results.dart
Frontend/lib/pages/Comp1/Comp1Results.dart
+112
-0
Frontend/lib/pages/Comp1/Step1/Comp1Step1First.dart
Frontend/lib/pages/Comp1/Step1/Comp1Step1First.dart
+1
-0
Frontend/lib/pages/Comp1/Step1/Comp1Step1Third.dart
Frontend/lib/pages/Comp1/Step1/Comp1Step1Third.dart
+1
-1
Frontend/lib/pages/Comp1/Step2/Comp1Step2.dart
Frontend/lib/pages/Comp1/Step2/Comp1Step2.dart
+1
-1
No files found.
Frontend/lib/MyStyles.dart
View file @
ad2f4b26
library
Autism
.
MyStyles
;
library
Autism
.
MyStyles
;
import
'package:flutter/material.dart'
;
import
'package:flutter/material.dart'
;
Color
cWhite
=
Colors
.
white
;
Color
cWhite
=
Colors
.
white
;
Color
cPrimary
=
Color
.
fromARGB
(
255
,
59
,
176
,
170
);
Color
cPrimary
=
Color
.
fromARGB
(
255
,
59
,
176
,
170
);
...
@@ -9,6 +11,7 @@ Color cbtnSuccess = Color.fromARGB(255, 18, 156, 22);
...
@@ -9,6 +11,7 @@ Color cbtnSuccess = Color.fromARGB(255, 18, 156, 22);
Color
cbtnText
=
Colors
.
white
;
Color
cbtnText
=
Colors
.
white
;
Color
ctext
=
Colors
.
white
;
Color
ctext
=
Colors
.
white
;
Color
cautiontext
=
Colors
.
yellow
;
Color
cHeading
=
Colors
.
black
;
Color
cHeading
=
Colors
.
black
;
Color
cBgHeading
=
Color
.
fromARGB
(
50
,
255
,
255
,
255
);
Color
cBgHeading
=
Color
.
fromARGB
(
50
,
255
,
255
,
255
);
...
...
Frontend/lib/main.dart
View file @
ad2f4b26
import
'package:Autism/pages/Comp1/Comp1Intro.dart'
;
import
'package:Autism/pages/Comp1/Comp1Intro.dart'
;
import
'package:Autism/pages/Comp1/Comp1Welcome.dart'
;
import
'package:Autism/pages/Comp1/Comp1Welcome.dart'
;
import
'package:Autism/pages/Results.dart'
;
import
'package:Autism/pages/Comp1/Step1/Comp1Step1First.dart'
;
import
'package:Autism/pages/Comp1/Step1/Comp1Step1First.dart'
;
import
'package:Autism/pages/Comp1/Step1/Comp1Step1Second.dart'
;
import
'package:Autism/pages/Comp1/Step1/Comp1Step1Second.dart'
;
import
'package:Autism/pages/Comp1/Step1/Comp1Step1Third.dart'
;
import
'package:Autism/pages/Comp1/Step1/Comp1Step1Third.dart'
;
...
@@ -12,7 +13,7 @@ import 'package:Autism/pages/Comp3/Comp3Page2.dart';
...
@@ -12,7 +13,7 @@ import 'package:Autism/pages/Comp3/Comp3Page2.dart';
import
'package:Autism/pages/Comp3/Comp3Page3.dart'
;
import
'package:Autism/pages/Comp3/Comp3Page3.dart'
;
import
'package:Autism/pages/Comp3/Comp3Page4.dart'
;
import
'package:Autism/pages/Comp3/Comp3Page4.dart'
;
import
'package:Autism/pages/Home.dart'
;
import
'package:Autism/pages/Home.dart'
;
import
'package:Autism/pages/Results.dart'
;
import
'package:Autism/pages/
Comp1/Comp1
Results.dart'
;
import
'package:Autism/pages/Welcome.dart'
;
import
'package:Autism/pages/Welcome.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
;
...
@@ -132,6 +133,12 @@ class MyApp extends StatelessWidget {
...
@@ -132,6 +133,12 @@ class MyApp extends StatelessWidget {
bg:
MyStyles
.
cPrimary
,
bg:
MyStyles
.
cPrimary
,
appbar:
true
,
appbar:
true
,
),
),
'/Comp1Results'
:
(
context
)
=>
MyTemplate
(
title:
'ප්රතීඵලය-කථන අසාමාන්යතාවයන් හදුනා ගැනීම'
,
child:
Comp1Results
(),
bg:
MyStyles
.
cPrimary
,
appbar:
true
,
),
});
});
}
}
}
}
...
...
Frontend/lib/pages/Comp1/Comp1Intro.dart
View file @
ad2f4b26
...
@@ -13,22 +13,34 @@ class Comp1Intro extends StatefulWidget {
...
@@ -13,22 +13,34 @@ class Comp1Intro extends StatefulWidget {
class
_Comp1IntroState
extends
State
<
Comp1Intro
>
{
class
_Comp1IntroState
extends
State
<
Comp1Intro
>
{
@override
@override
Widget
build
(
BuildContext
context
)
{
Widget
build
(
BuildContext
context
)
{
void
nextPage
(
String
route
)
{
void
nextPage
(
String
route
)
{
Navigator
.
pushNamedAndRemoveUntil
(
context
,
route
,(
r
)
=>
false
,
arguments:
{});
Navigator
.
pushNamedAndRemoveUntil
(
context
,
route
,
(
r
)
=>
false
,
arguments:
{});
}
}
return
Column
(
return
Column
(
children:
[
children:
[
SizedBox
(
height:
20
,),
SizedBox
(
height:
20
,
),
Header
(
title:
'කැමති ක්රියාකාරකම තෝරන්න'
),
Header
(
title:
'කැමති ක්රියාකාරකම තෝරන්න'
),
SizedBox
(
height:
30
,),
SizedBox
(
Button
(
route:
'/Comp1Step1First'
,
title:
'පින්තුරයක් බලා කතන්දර කියවීම'
,
bg:
MyStyles
.
cbtnPrimary
),
height:
30
,
SizedBox
(
height:
30
,),
Button
(
route:
'/Comp1Step2'
,
title:
'කැමති කතාවක් කීම'
,
bg:
MyStyles
.
cbtnPrimary
),
SizedBox
(
width:
180
,
child:
Image
.
asset
(
'assets/images/Component 1 - img 02.png'
)
),
),
Button
(
route:
'/Comp1Step1First'
,
title:
'පින්තුරයක් බලා කතන්දර කියවීම'
,
bg:
MyStyles
.
cbtnPrimary
),
SizedBox
(
height:
30
,
),
Button
(
route:
'/Comp1Step2'
,
title:
'කැමති කතාවක් කීම'
,
bg:
MyStyles
.
cbtnPrimary
),
SizedBox
(
width:
180
,
child:
Image
.
asset
(
'assets/images/Component 1 - img 02.png'
)),
],
],
);
);
}
}
...
...
Frontend/lib/pages/Comp1/Comp1Results.dart
0 → 100644
View file @
ad2f4b26
import
'package:Autism/widgets/ButtonXl.dart'
;
import
'package:flutter/material.dart'
;
import
'package:Autism/MyStyles.dart'
as
MyStyles
;
class
Comp1Results
extends
StatefulWidget
{
const
Comp1Results
({
super
.
key
});
@override
State
<
Comp1Results
>
createState
()
=>
_Comp1ResultsState
();
}
class
_Comp1ResultsState
extends
State
<
Comp1Results
>
{
String
color
=
''
;
@override
Widget
build
(
BuildContext
context
)
{
final
arg
=
ModalRoute
.
of
(
context
)!.
settings
.
arguments
as
Map
;
color
=
arg
[
'color'
];
return
Column
(
children:
[
SizedBox
(
height:
20
,
),
SizedBox
(
width:
300
,
child:
Container
(
decoration:
BoxDecoration
(
border:
Border
.
all
(
color:
MyStyles
.
cBgHeading
,
width:
2
),
borderRadius:
BorderRadius
.
all
(
Radius
.
circular
(
15.0
)),
color:
MyStyles
.
cBgHeading
,
),
child:
Column
(
children:
[
Padding
(
padding:
EdgeInsets
.
all
(
25
),
child:
Center
(
child:
Text
(
'ඔබගේ ප්රතීඵලයට අදාළ වර්ණය වන්නේ'
,
textAlign:
TextAlign
.
center
,
style:
TextStyle
(
fontWeight:
FontWeight
.
bold
,
fontSize:
18
,
color:
MyStyles
.
cHeading
),
)),
),
Container
(
decoration:
BoxDecoration
(
border:
Border
.
all
(
color:
MyStyles
.
cBgHeading
,
width:
2
),
borderRadius:
BorderRadius
.
all
(
Radius
.
circular
(
15.0
)),
color:
color
==
'රතු පාට'
?
MyStyles
.
cbtnError
:
color
==
'කොළ පාට'
?
MyStyles
.
cbtnSuccess
:
MyStyles
.
cWhite
,
),
child:
Padding
(
padding:
EdgeInsets
.
all
(
40
),
child:
Center
(
child:
Text
(
color
,
textAlign:
TextAlign
.
center
,
style:
TextStyle
(
fontSize:
18
,
color:
MyStyles
.
cbtnText
),
)),
),
)
],
),
),
),
SizedBox
(
height:
20
),
// Add some spacing between the container and the text box
Text
(
'⚠️ රතු වර්ණයෙන් ඔටිසම් රෝගී තත්වය සම්බන්ද කථන ආබාධයක් පැවතීමට වැඩි සම්භාවිතාවක් පැවතීමට හැකියාව ඇතිබව පෙන්නුම් කරයි. ප්රතිඵලය ලෙස රතු වර්ණය දිස්වුවහොත් වෛද්යවරයෙක් ලවා පරීක්ෂා කරවා ගැනීම සුදුසු වේ. කොළ වර්ණයෙන් රෝගී තත්වයක් නොමැති බවත් පෙන්නුම් කරයි.'
,
style:
TextStyle
(
fontSize:
16
,
fontWeight:
FontWeight
.
bold
,
color:
MyStyles
.
cautiontext
,
),
),
SizedBox
(
height:
10
),
// Add some spacing between the container and the text box
Text
(
'⚠️ යම් නිගමනයකට එලඹීමට පෙර අවම තුන්වතාවක්වත් නැවත නැවතත් ක්රියාකාරකමේ නියලී ලැබෙන ප්රතිඵලය එකම දැයි පරීක්ෂා කර බලන්න.'
,
style:
TextStyle
(
fontSize:
16
,
fontWeight:
FontWeight
.
bold
,
color:
MyStyles
.
cautiontext
,
),
),
SizedBox
(
height:
10
),
// Add some spacing between the container and the text box
Text
(
'⚠️ වෛද්යවරයෙක්ගේ පරීක්ෂණයකින් තොරව මෙහි ලැබෙන ප්රතිඵලය මත පමණක් එලඹී නිගමනවලට එලඹීමෙන් වලකින්න.'
,
style:
TextStyle
(
fontSize:
16
,
fontWeight:
FontWeight
.
bold
,
color:
MyStyles
.
cautiontext
,
),
),
SizedBox
(
height:
50
,
),
ButtonXL
(
route:
'/home'
,
title:
'ආරම්භක පිටුවට'
,
bg:
MyStyles
.
cbtnPrimary
),
],
);
}
}
Frontend/lib/pages/Comp1/Step1/Comp1Step1First.dart
View file @
ad2f4b26
import
'package:Autism/widgets/Header.dart'
;
import
'package:Autism/widgets/Header.dart'
;
import
'package:Autism/widgets/ImageCard.dart'
;
import
'package:Autism/widgets/ImageCard.dart'
;
import
'package:flutter/material.dart'
;
import
'package:flutter/material.dart'
;
import
'package:Autism/MyStyles.dart'
as
MyStyles
;
class
Comp1Step1First
extends
StatefulWidget
{
class
Comp1Step1First
extends
StatefulWidget
{
const
Comp1Step1First
({
super
.
key
});
const
Comp1Step1First
({
super
.
key
});
...
...
Frontend/lib/pages/Comp1/Step1/Comp1Step1Third.dart
View file @
ad2f4b26
...
@@ -56,7 +56,7 @@ class _Comp1Step1ThirdState extends State<Comp1Step1Third> {
...
@@ -56,7 +56,7 @@ class _Comp1Step1ThirdState extends State<Comp1Step1Third> {
print
(
response
.
data
);
print
(
response
.
data
);
print
(
response
.
data
[
"abnomility-sentiment"
]);
print
(
response
.
data
[
"abnomility-sentiment"
]);
print
(
color
);
print
(
color
);
nextPage
(
'/Results'
);
nextPage
(
'/
Comp1
Results'
);
}
}
}
catch
(
e
)
{
}
catch
(
e
)
{
print
(
e
);
print
(
e
);
...
...
Frontend/lib/pages/Comp1/Step2/Comp1Step2.dart
View file @
ad2f4b26
...
@@ -53,7 +53,7 @@ class _Comp1Step2State extends State<Comp1Step2> {
...
@@ -53,7 +53,7 @@ class _Comp1Step2State extends State<Comp1Step2> {
print
(
response
.
data
);
print
(
response
.
data
);
print
(
response
.
data
[
"abnomility-sentiment"
]);
print
(
response
.
data
[
"abnomility-sentiment"
]);
print
(
color
);
print
(
color
);
nextPage
(
'/Results'
);
nextPage
(
'/
Comp1
Results'
);
}
}
}
catch
(
e
)
{
}
catch
(
e
)
{
print
(
e
);
print
(
e
);
...
...
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