Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Notar e Anotar
notar-e-anotar-mobile
Commits
ec3bc58f
Commit
ec3bc58f
authored
3 years ago
by
Thiago Nitschke Simões
Browse files
Options
Download
Plain Diff
Merge branch 'release/sprint_2'
parents
fb781cb6
16005ca5
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
images/Image_01_Onboarding.png
+0
-0
images/Image_01_Onboarding.png
images/Image_02_Onboarding.png
+0
-0
images/Image_02_Onboarding.png
images/Image_03_Onboarding.png
+0
-0
images/Image_03_Onboarding.png
lib/pages/onboarding.dart
+86
-35
lib/pages/onboarding.dart
lib/pages/routine_period_selection.dart
+14
-4
lib/pages/routine_period_selection.dart
lib/pages/routine_plan_registration.dart
+1
-0
lib/pages/routine_plan_registration.dart
with
101 additions
and
39 deletions
+101
-39
images/Image_01_Onboarding.png
0 → 100644
View file @
ec3bc58f
124 KB
This diff is collapsed.
Click to expand it.
images/Image_02_Onboarding.png
0 → 100644
View file @
ec3bc58f
88.6 KB
This diff is collapsed.
Click to expand it.
images/Image_03_Onboarding.png
0 → 100644
View file @
ec3bc58f
152 KB
This diff is collapsed.
Click to expand it.
lib/pages/onboarding.dart
View file @
ec3bc58f
...
...
@@ -29,49 +29,100 @@ class _OnboardingState extends State<Onboarding> {
body:
IntroductionScreen
(
pages:
[
PageViewModel
(
title:
'Título Aqui'
,
bodyWidget:
Image
(
image:
AssetImage
(
'images/onboarding_image_1.png'
,
),
title:
'A Rotina Merece
\n
Ser Cuidada'
,
bodyWidget:
Column
(
crossAxisAlignment:
CrossAxisAlignment
.
center
,
children:
<
Widget
>[
SizedBox
(
height:
16
),
Center
(
child:
Container
(
child:
Image
(
image:
AssetImage
(
'images/Image_01_Onboarding.png'
),
),
margin:
const
EdgeInsets
.
all
(
10.0
),
width:
209.0
,
height:
267.0
,
),
),
SizedBox
(
height:
16
),
Center
(
child:
Text
(
'Notar e Anotar ajuda a cuidar da rotina de sua família Ensine desde cedo as crianças'
,
textAlign:
TextAlign
.
center
,
style:
TextStyle
(
fontWeight:
FontWeight
.
w600
,
color:
Colors
.
grey
,
fontSize:
14
),
),
),
],
),
footer:
Text
(
'Lorem ipsum '
'lorem ipsum'
,
style:
TextStyle
(
fontSize:
20
),
),
//image: buildImage('images/group_25.png'),
decoration:
getPageDecoration
(),
),
PageViewModel
(
title:
'Título Aqui'
,
bodyWidget:
Image
(
image:
AssetImage
(
'images/onboarding_image_2.png'
),
),
footer:
Text
(
'Lorem ipsum '
'lorem ipsum'
,
style:
TextStyle
(
fontSize:
20
),
title:
'Organize Sua Rotina'
,
bodyWidget:
Column
(
crossAxisAlignment:
CrossAxisAlignment
.
center
,
children:
<
Widget
>[
SizedBox
(
height:
16
),
Center
(
child:
Container
(
child:
Image
(
image:
AssetImage
(
'images/Image_02_Onboarding.png'
),
),
margin:
const
EdgeInsets
.
all
(
10.0
),
width:
209.0
,
height:
267.0
,
),
),
SizedBox
(
height:
16
),
Center
(
child:
Text
(
'Programe a semana!
\n
Evite imprevistos e confusões em sua casa
\n
Valorize seu tempo!'
,
textAlign:
TextAlign
.
center
,
style:
TextStyle
(
fontWeight:
FontWeight
.
w600
,
color:
Colors
.
grey
,
fontSize:
14
),
),
),
],
),
//image: buildImage('images/group_26.png'),
decoration:
getPageDecoration
(),
),
PageViewModel
(
title:
'Título Aqui'
,
bodyWidget:
Image
(
image:
AssetImage
(
'images/onboarding_image_3.png'
),
),
footer:
ButtonWidget
(
text:
'Começar App'
,
onClicked:
()
=>
goToHome
(
context
),
title:
'Valorize cada conquista
\n
de seu filho!'
,
bodyWidget:
Column
(
crossAxisAlignment:
CrossAxisAlignment
.
center
,
children:
<
Widget
>[
SizedBox
(
height:
16
),
Center
(
child:
Container
(
child:
Image
(
image:
AssetImage
(
'images/Image_03_Onboarding.png'
),
),
//margin: const EdgeInsets.all(10.0),
width:
720.0
,
height:
326.0
,
),
),
Center
(
child:
Text
(
'Reconheça e elogie!
\n
Estimule seu filho nas tarefas do dia a dia'
,
textAlign:
TextAlign
.
center
,
style:
TextStyle
(
fontWeight:
FontWeight
.
w600
,
color:
Colors
.
grey
,
fontSize:
14
),
),
),
],
),
//image: buildImage('images/family.png'),
decoration:
getPageDecoration
(),
)
,
)
],
done:
Text
(
'
Read
'
,
'
PRONTO
'
,
style:
TextStyle
(
fontWeight:
FontWeight
.
bold
,
color:
customizedGreen
,
...
...
@@ -124,11 +175,11 @@ class _OnboardingState extends State<Onboarding> {
PageDecoration
getPageDecoration
()
=>
PageDecoration
(
titleTextStyle:
TextStyle
(
fontSize:
35
,
fontWeight:
FontWeight
.
bold
,
color:
customizedGreen
),
fontSize:
28
,
fontWeight:
FontWeight
.
bold
,
color:
customizedGreen
),
bodyTextStyle:
TextStyle
(
fontSize:
20
),
titlePadding:
EdgeInsets
.
all
(
20
).
copyWith
(
top:
0
),
descriptionPadding:
EdgeInsets
.
all
(
16
).
copyWith
(
bottom:
0
),
imagePadding:
EdgeInsets
.
all
(
24
),
titlePadding:
EdgeInsets
.
all
(
8
).
copyWith
(
top:
0
),
descriptionPadding:
EdgeInsets
.
all
(
8
).
copyWith
(
bottom:
0
),
imagePadding:
EdgeInsets
.
all
(
8
),
pageColor:
Colors
.
white
,
);
}
This diff is collapsed.
Click to expand it.
lib/pages/routine_period_selection.dart
View file @
ec3bc58f
...
...
@@ -8,7 +8,10 @@ class RoutinePeriodSelection extends StatefulWidget {
}
class
_RoutinePeriodSelectionState
extends
State
<
RoutinePeriodSelection
>
{
int
_value
=
8
;
int
_value
=
4
;
List
<
int
>
valueWeek
=
[];
int
valWeek
;
@override
Widget
build
(
BuildContext
context
)
{
...
...
@@ -16,7 +19,7 @@ class _RoutinePeriodSelectionState extends State<RoutinePeriodSelection> {
appBar:
AppBar
(
textTheme:
Theme
.
of
(
context
).
textTheme
,
title:
Text
(
'Monitora
çã
o'
,
'Monitora
ment
o'
,
style:
TextStyle
(
color:
Colors
.
white
),
),
iconTheme:
IconThemeData
(
color:
Colors
.
white
),
...
...
@@ -59,17 +62,19 @@ class _RoutinePeriodSelectionState extends State<RoutinePeriodSelection> {
value:
_value
.
toDouble
(),
min:
4
,
max:
16
,
divisions:
1
6
,
divisions:
1
2
,
activeColor:
Colors
.
teal
,
// inactiveColor: Colors,
label:
'
$_value
'
,
onChanged:
(
double
newValue
)
{
setState
(()
{
_value
=
newValue
.
round
();
valueWeeks
(
_value
);
});
},
semanticFormatterCallback:
(
double
newValue
)
{
return
'
${newValue.round()}
week'
;
}),
),
),
...
...
@@ -111,9 +116,14 @@ class _RoutinePeriodSelectionState extends State<RoutinePeriodSelection> {
Navigator
.
push
(
context
,
MaterialPageRoute
(
builder:
(
context
)
=>
RoutineThemeSelection
()));
builder:
(
context
)
=>
RoutineThemeSelection
())
);
},
),
));
}
void
valueWeeks
(
value
){
// valueWeek = value;
valWeek
=
value
;
}
}
This diff is collapsed.
Click to expand it.
lib/pages/routine_plan_registration.dart
View file @
ec3bc58f
...
...
@@ -30,6 +30,7 @@ class _RoutinePlanRegistrationState extends State<RoutinePlanRegistration> {
];
@override
int
_value
=
1
;
Widget
build
(
BuildContext
context
)
{
return
Scaffold
(
appBar:
AppBar
(
...
...
This diff is collapsed.
Click to expand it.
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
Menu
Projects
Groups
Snippets
Help