Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Ğecko
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
clients
Ğecko
Commits
42482fb5
Commit
42482fb5
authored
4 years ago
by
poka
Browse files
Options
Downloads
Patches
Plain Diff
Make responsive great again (all app)
parent
723e7f13
No related branches found
No related tags found
1 merge request
!6
Figma onboarding workflow
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
lib/main.dart
+29
-15
29 additions, 15 deletions
lib/main.dart
lib/screens/home.dart
+22
-20
22 additions, 20 deletions
lib/screens/home.dart
pubspec.lock
+7
-0
7 additions, 0 deletions
pubspec.lock
pubspec.yaml
+3
-2
3 additions, 2 deletions
pubspec.yaml
with
61 additions
and
37 deletions
lib/main.dart
+
29
−
15
View file @
42482fb5
...
@@ -14,6 +14,7 @@ import 'package:flutter/material.dart';
...
@@ -14,6 +14,7 @@ import 'package:flutter/material.dart';
import
'package:graphql_flutter/graphql_flutter.dart'
;
import
'package:graphql_flutter/graphql_flutter.dart'
;
import
'package:provider/provider.dart'
;
import
'package:provider/provider.dart'
;
import
'package:flutter/foundation.dart'
;
import
'package:flutter/foundation.dart'
;
import
'package:responsive_framework/responsive_framework.dart'
;
import
'package:shared_preferences/shared_preferences.dart'
;
import
'package:shared_preferences/shared_preferences.dart'
;
import
'package:sentry_flutter/sentry_flutter.dart'
;
import
'package:sentry_flutter/sentry_flutter.dart'
;
import
'package:catcher/catcher.dart'
;
import
'package:catcher/catcher.dart'
;
...
@@ -104,6 +105,17 @@ class Gecko extends StatelessWidget {
...
@@ -104,6 +105,17 @@ class Gecko extends StatelessWidget {
child:
GraphQLProvider
(
child:
GraphQLProvider
(
client:
_client
,
client:
_client
,
child:
MaterialApp
(
child:
MaterialApp
(
builder:
(
context
,
widget
)
=
>
ResponsiveWrapper
.
builder
(
BouncingScrollWrapper
.
builder
(
context
,
widget
),
maxWidth:
1200
,
minWidth:
480
,
defaultScale:
true
,
breakpoints:
[
ResponsiveBreakpoint
.
resize
(
480
,
name:
MOBILE
),
ResponsiveBreakpoint
.
autoScale
(
800
,
name:
TABLET
),
ResponsiveBreakpoint
.
resize
(
1000
,
name:
DESKTOP
),
],
background:
Container
(
color:
Color
(
0xFFF5F5F5
))),
navigatorKey:
Catcher
.
navigatorKey
,
navigatorKey:
Catcher
.
navigatorKey
,
title:
'Ğecko'
,
title:
'Ğecko'
,
theme:
ThemeData
(
theme:
ThemeData
(
...
@@ -117,6 +129,8 @@ class Gecko extends StatelessWidget {
...
@@ -117,6 +129,8 @@ class Gecko extends StatelessWidget {
),
),
),
),
home:
HomeScreen
(),
home:
HomeScreen
(),
)));
initialRoute:
"/"
,
),
));
}
}
}
}
This diff is collapsed.
Click to expand it.
lib/screens/home.dart
+
22
−
20
View file @
42482fb5
...
@@ -126,7 +126,7 @@ class HomeScreen extends StatelessWidget {
...
@@ -126,7 +126,7 @@ class HomeScreen extends StatelessWidget {
},
},
child:
Column
(
children:
<
Widget
>[
child:
Column
(
children:
<
Widget
>[
Padding
(
Padding
(
padding:
EdgeInsets
.
only
(
top:
2
2
),
padding:
EdgeInsets
.
only
(
top:
2
0
),
child:
Row
(
child:
Row
(
mainAxisAlignment:
MainAxisAlignment
.
center
,
mainAxisAlignment:
MainAxisAlignment
.
center
,
children:
<
Widget
>[
children:
<
Widget
>[
...
@@ -134,22 +134,24 @@ class HomeScreen extends StatelessWidget {
...
@@ -134,22 +134,24 @@ class HomeScreen extends StatelessWidget {
Image
(
Image
(
image:
image:
AssetImage
(
'assets/icon/gecko_final.png'
),
AssetImage
(
'assets/icon/gecko_final.png'
),
height:
1
6
0
),
height:
1
8
0
),
])),
])),
Padding
(
Padding
(
padding:
EdgeInsets
.
only
(
top:
1
2
),
padding:
EdgeInsets
.
only
(
top:
1
5
),
child:
Row
(
child:
Row
(
mainAxisAlignment:
MainAxisAlignment
.
center
,
mainAxisAlignment:
MainAxisAlignment
.
center
,
children:
<
Widget
>[
children:
<
Widget
>[
Text
(
Text
(
"
L’application de paiement Ğ1
\n
plus mobile qu’un
lé
s
ard
du Vietnam
"
,
"
y'a pas de
lé
z
ard
!
"
,
textAlign:
TextAlign
.
center
,
textAlign:
TextAlign
.
center
,
style:
TextStyle
(
style:
TextStyle
(
color:
Colors
.
black
,
fontSize:
15
),
color:
Colors
.
black
,
fontSize:
17
,
fontStyle:
FontStyle
.
italic
),
)
)
])),
])),
Padding
(
Padding
(
padding:
EdgeInsets
.
only
(
top:
4
0
),
padding:
EdgeInsets
.
only
(
top:
6
0
),
child:
Row
(
child:
Row
(
mainAxisAlignment:
MainAxisAlignment
.
center
,
mainAxisAlignment:
MainAxisAlignment
.
center
,
children:
<
Widget
>[
children:
<
Widget
>[
...
@@ -162,11 +164,11 @@ class HomeScreen extends StatelessWidget {
...
@@ -162,11 +164,11 @@ class HomeScreen extends StatelessWidget {
splashColor:
Color
(
splashColor:
Color
(
0xffD28928
),
// inkwell color
0xffD28928
),
// inkwell color
child:
Padding
(
child:
Padding
(
padding:
EdgeInsets
.
all
(
17
),
padding:
EdgeInsets
.
all
(
22
),
child:
Image
(
child:
Image
(
image:
AssetImage
(
image:
AssetImage
(
'assets/qrcode-scan.png'
),
'assets/qrcode-scan.png'
),
height:
5
0
)),
height:
6
0
)),
onTap:
()
async
{
onTap:
()
async
{
await
_historyProvider
await
_historyProvider
.
scan
(
context
);
.
scan
(
context
);
...
@@ -185,17 +187,17 @@ class HomeScreen extends StatelessWidget {
...
@@ -185,17 +187,17 @@ class HomeScreen extends StatelessWidget {
],
],
),
),
),
),
SizedBox
(
height:
1
0
),
SizedBox
(
height:
1
2
),
Text
(
Text
(
"Payer par QR-Code"
,
"Payer par QR-Code"
,
textAlign:
TextAlign
.
center
,
textAlign:
TextAlign
.
center
,
style:
TextStyle
(
style:
TextStyle
(
color:
Colors
.
black
,
fontSize:
1
3
),
color:
Colors
.
black
,
fontSize:
1
6
),
)
)
])
])
])),
])),
Padding
(
Padding
(
padding:
EdgeInsets
.
only
(
top:
4
0
),
padding:
EdgeInsets
.
only
(
top:
5
0
),
child:
Row
(
child:
Row
(
mainAxisAlignment:
MainAxisAlignment
.
center
,
mainAxisAlignment:
MainAxisAlignment
.
center
,
children:
<
Widget
>[
children:
<
Widget
>[
...
@@ -209,11 +211,11 @@ class HomeScreen extends StatelessWidget {
...
@@ -209,11 +211,11 @@ class HomeScreen extends StatelessWidget {
0xffD28928
),
// inkwell color
0xffD28928
),
// inkwell color
child:
Padding
(
child:
Padding
(
padding:
EdgeInsets
.
symmetric
(
padding:
EdgeInsets
.
symmetric
(
horizontal:
18
,
vertical:
1
4
),
horizontal:
20
,
vertical:
1
6
),
child:
Image
(
child:
Image
(
image:
AssetImage
(
image:
AssetImage
(
'assets/blockchain.png'
),
'assets/blockchain.png'
),
height:
55
)),
height:
70
)),
onTap:
()
{
onTap:
()
{
// Navigator.push(
// Navigator.push(
// context,
// context,
...
@@ -237,15 +239,15 @@ class HomeScreen extends StatelessWidget {
...
@@ -237,15 +239,15 @@ class HomeScreen extends StatelessWidget {
],
],
),
),
),
),
SizedBox
(
height:
1
0
),
SizedBox
(
height:
1
2
),
Text
(
Text
(
"Explorer
\n
"
,
"Explorer
\n
"
,
textAlign:
TextAlign
.
center
,
textAlign:
TextAlign
.
center
,
style:
TextStyle
(
style:
TextStyle
(
color:
Colors
.
black
,
fontSize:
1
3
),
color:
Colors
.
black
,
fontSize:
1
6
),
)
)
]),
]),
SizedBox
(
width:
1
0
0
),
SizedBox
(
width:
1
4
0
),
Column
(
children:
<
Widget
>[
Column
(
children:
<
Widget
>[
Container
(
Container
(
child:
ClipOval
(
child:
ClipOval
(
...
@@ -255,11 +257,11 @@ class HomeScreen extends StatelessWidget {
...
@@ -255,11 +257,11 @@ class HomeScreen extends StatelessWidget {
splashColor:
Color
(
splashColor:
Color
(
0xffD28928
),
// inkwell color
0xffD28928
),
// inkwell color
child:
Padding
(
child:
Padding
(
padding:
EdgeInsets
.
all
(
2
0
),
padding:
EdgeInsets
.
all
(
2
3
),
child:
Image
(
child:
Image
(
image:
AssetImage
(
image:
AssetImage
(
'assets/lock.png'
),
'assets/lock.png'
),
height:
4
5
)),
height:
5
7
)),
onTap:
()
{
onTap:
()
{
isWalletsExists
isWalletsExists
?
Navigator
.
push
(
?
Navigator
.
push
(
...
@@ -289,12 +291,12 @@ class HomeScreen extends StatelessWidget {
...
@@ -289,12 +291,12 @@ class HomeScreen extends StatelessWidget {
],
],
),
),
),
),
SizedBox
(
height:
1
0
),
SizedBox
(
height:
1
2
),
Text
(
Text
(
"Gérer mes
\n
portefeuilles"
,
"Gérer mes
\n
portefeuilles"
,
textAlign:
TextAlign
.
center
,
textAlign:
TextAlign
.
center
,
style:
TextStyle
(
style:
TextStyle
(
color:
Colors
.
black
,
fontSize:
1
3
),
color:
Colors
.
black
,
fontSize:
1
6
),
)
)
])
])
]))
]))
...
...
This diff is collapsed.
Click to expand it.
pubspec.lock
+
7
−
0
View file @
42482fb5
...
@@ -576,6 +576,13 @@ packages:
...
@@ -576,6 +576,13 @@ packages:
url: "https://pub.dartlang.org"
url: "https://pub.dartlang.org"
source: hosted
source: hosted
version: "0.2.21"
version: "0.2.21"
responsive_framework:
dependency: "direct main"
description:
name: responsive_framework
url: "https://pub.dartlang.org"
source: hosted
version: "0.0.14"
rxdart:
rxdart:
dependency: transitive
dependency: transitive
description:
description:
...
...
This diff is collapsed.
Click to expand it.
pubspec.yaml
+
3
−
2
View file @
42482fb5
...
@@ -5,7 +5,7 @@ description: A new Flutter project.
...
@@ -5,7 +5,7 @@ description: A new Flutter project.
# pub.dev using `pub publish`. This is preferred for private packages.
# pub.dev using `pub publish`. This is preferred for private packages.
publish_to
:
'
none'
# Remove this line if you wish to publish to pub.dev
publish_to
:
'
none'
# Remove this line if you wish to publish to pub.dev
version
:
0.0.1+1
8
version
:
0.0.1+1
9
environment
:
environment
:
sdk
:
"
>=2.7.0
<3.0.0"
sdk
:
"
>=2.7.0
<3.0.0"
...
@@ -39,6 +39,7 @@ dependencies:
...
@@ -39,6 +39,7 @@ dependencies:
sentry_flutter
:
^4.0.4
sentry_flutter
:
^4.0.4
catcher
:
^0.4.1
catcher
:
^0.4.1
bubble
:
^1.1.9+1
bubble
:
^1.1.9+1
responsive_framework
:
^0.0.14
flutter_icons
:
flutter_icons
:
android
:
"
ic_launcher"
android
:
"
ic_launcher"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment