Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Memri
Flutter App for Memri
Commits
80fe2a41
Commit
80fe2a41
authored
4 years ago
by
Amirjanyan
Browse files
Options
Download
Email Patches
Plain Diff
SetupScreenView: Fixed spacings and paddings
parent
f3098a68
Pipeline
#2402
passed with stages
in 2 minutes and 45 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/MemriApp/UI/Setup/SetupScreenView.dart
+53
-53
lib/MemriApp/UI/Setup/SetupScreenView.dart
with
53 additions
and
53 deletions
+53
-53
lib/MemriApp/UI/Setup/SetupScreenView.dart
+
53
-
53
View file @
80fe2a41
...
...
@@ -40,13 +40,10 @@ class _SetupScreenViewState extends State<SetupScreenView> {
brightness:
Brightness
.
dark
,
primarySwatch:
Colors
.
green
),
themeMode:
ThemeMode
.
dark
,
home:
FutureBuilder
(
//TODO hack to have another context, should be better way
initialData:
true
,
builder:
(
BuildContext
context
,
snapshot
)
=
>
Scaffold
(
body:
Column
(
mainAxisAlignment:
MainAxisAlignment
.
center
,
// direction: Axis.vertical,
// crossAxisAlignment: WrapCrossAlignment.center,
children:
space
(
10
,
[
Wrap
(
direction:
Axis
.
vertical
,
...
...
@@ -68,60 +65,63 @@ class _SetupScreenViewState extends State<SetupScreenView> {
Text
(
"A place where your data belongs to you."
,
textAlign:
TextAlign
.
center
),
SizedBox
(
height:
30
),
Wrap
(
direction:
Axis
.
vertical
,
spacing:
6
,
children:
[
Text
(
"Have a memri pod?"
),
ElevatedButton
(
onPressed:
()
=
>
Navigator
.
of
(
context
)
.
push
(
MaterialPageRoute
(
builder:
(
context
)
{
return
Scaffold
(
appBar:
AppBar
(
title:
Text
(
'Pod setup'
),
),
body:
podSetup
,
);
})),
style:
ElevatedButton
.
styleFrom
(
primary:
Colors
.
green
,
shape:
RoundedRectangleBorder
(
borderRadius:
BorderRadius
.
circular
(
10
))),
child:
Container
(
width:
MediaQuery
.
of
(
context
)
.
size
.
width
-
40
,
height:
50
,
alignment:
Alignment
.
center
,
child:
Text
(
"Connect to pod"
,
style:
TextStyle
(
fontFamily:
"headline"
,
color:
Colors
.
white
,
),
))),
],
),
Padding
(
padding:
EdgeInsets
.
only
(
top:
10
),
child:
Wrap
(
direction:
Axis
.
vertical
,
spacing:
6
,
children:
[
Text
(
"Just want to try the app?"
),
ElevatedButton
(
style:
ElevatedButton
.
styleFrom
(
primary:
Colors
.
grey
.
shade800
,
padding:
const
EdgeInsets
.
symmetric
(
horizontal:
5.0
),
child:
Column
(
crossAxisAlignment:
CrossAxisAlignment
.
start
,
children:
space
(
6
,
[
Text
(
"Have a memri pod?"
),
ElevatedButton
(
onPressed:
()
=
>
Navigator
.
of
(
context
)
.
push
(
MaterialPageRoute
(
builder:
(
context
)
{
return
Scaffold
(
appBar:
AppBar
(
title:
Text
(
'Pod setup'
),
),
body:
podSetup
,
);
})),
style:
ElevatedButton
.
styleFrom
(
minimumSize:
Size
.
fromHeight
(
50
),
primary:
Colors
.
green
,
shape:
RoundedRectangleBorder
(
borderRadius:
BorderRadius
.
circular
(
10
))),
onPressed:
onLocalDemoPressed
,
child:
Container
(
width:
MediaQuery
.
of
(
context
)
.
size
.
width
-
40
,
height:
50
,
alignment:
Alignment
.
center
,
BorderRadius
.
circular
(
10
)),
),
child:
Text
(
"Connect to pod"
,
style:
TextStyle
(
color:
Colors
.
white
,
),
)),
],
Axis
.
vertical
),
),
),
Padding
(
padding:
EdgeInsets
.
only
(
top:
10
,
left:
5.0
,
right:
5.0
),
child:
Column
(
crossAxisAlignment:
CrossAxisAlignment
.
start
,
children:
space
(
6
,
[
Text
(
"Just want to try the app?"
),
ElevatedButton
(
style:
ElevatedButton
.
styleFrom
(
minimumSize:
Size
.
fromHeight
(
50
),
primary:
Colors
.
grey
.
shade800
,
shape:
RoundedRectangleBorder
(
borderRadius:
BorderRadius
.
circular
(
10
))),
onPressed:
onLocalDemoPressed
,
child:
Text
(
"Let me try the app without a pod"
)))
],
"Let me try the app without a pod"
))
],
Axis
.
vertical
),
))
]),
))),
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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
Explore
Projects
Groups
Snippets