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
e0ebd82b
Commit
e0ebd82b
authored
4 years ago
by
poka
Browse files
Options
Downloads
Patches
Plain Diff
Add printer, add border to array
parent
fb11550e
No related branches found
No related tags found
1 merge request
!6
Figma onboarding workflow
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
assets/printer.png
+0
-0
0 additions, 0 deletions
assets/printer.png
lib/screens/onBoarding/9_stepNine.dart
+40
-3
40 additions, 3 deletions
lib/screens/onBoarding/9_stepNine.dart
with
40 additions
and
3 deletions
assets/printer.png
0 → 100755
+
0
−
0
View file @
e0ebd82b
460 B
This diff is collapsed.
Click to expand it.
lib/screens/onBoarding/9_stepNine.dart
+
40
−
3
View file @
e0ebd82b
...
...
@@ -3,6 +3,7 @@ import 'package:flutter/services.dart';
import
'package:flutter/material.dart'
;
import
'package:gecko/models/generateWallets.dart'
;
import
'package:gecko/screens/commonElements.dart'
;
import
'package:printing/printing.dart'
;
import
'package:provider/provider.dart'
;
// ignore: must_be_immutable
...
...
@@ -70,7 +71,7 @@ class OnboardingStepNine extends StatelessWidget {
fontWeight:
FontWeight
.
w500
),
),
),
SizedBox
(
height:
64
),
SizedBox
(
height:
50
),
// TextField(
// enabled: false,
// controller: _generateWalletProvider.mnemonicController,
...
...
@@ -84,6 +85,21 @@ class OnboardingStepNine extends StatelessWidget {
// color: Colors.black,
// fontWeight: FontWeight.w400)),
sentanceArray
(
context
),
SizedBox
(
height:
15
),
GestureDetector
(
onTap:
()
{
Navigator
.
push
(
context
,
MaterialPageRoute
(
builder:
(
context
)
{
return
PrintWallet
(
_generateWalletProvider
.
generatedMnemonic
);
}),
);
},
child:
Image
.
asset
(
'assets/printer.png'
,
),
),
Expanded
(
child:
Align
(
alignment:
Alignment
.
bottomCenter
,
...
...
@@ -102,7 +118,7 @@ class OnboardingStepNine extends StatelessWidget {
child:
Text
(
"Choisir une autre phrase"
,
style:
TextStyle
(
fontSize:
20
))),
))),
SizedBox
(
height:
2
0
),
SizedBox
(
height:
2
5
),
SizedBox
(
width:
350
,
height:
55
,
...
...
@@ -171,6 +187,7 @@ Widget sentanceArray(BuildContext context) {
padding:
EdgeInsets
.
symmetric
(
horizontal:
12
),
child:
Container
(
decoration:
BoxDecoration
(
border:
Border
.
all
(
color:
Colors
.
black
),
color:
Colors
.
grey
[
300
],
borderRadius:
BorderRadius
.
all
(
const
Radius
.
circular
(
10
),
...
...
@@ -207,7 +224,6 @@ Widget sentanceArray(BuildContext context) {
}
Widget
arrayCell
(
dataWord
)
{
print
(
dataWord
);
return
Container
(
width:
80
,
child:
Column
(
children:
<
Widget
>[
...
...
@@ -217,3 +233,24 @@ Widget arrayCell(dataWord) {
style:
TextStyle
(
fontSize:
16
,
color:
Colors
.
black
)),
]));
}
// ignore: must_be_immutable
class
PrintWallet
extends
StatelessWidget
{
PrintWallet
(
this
.
sentence
);
final
String
sentence
;
@override
Widget
build
(
BuildContext
context
)
{
GenerateWalletsProvider
_generateWalletProvider
=
Provider
.
of
<
GenerateWalletsProvider
>(
context
);
return
MaterialApp
(
home:
Scaffold
(
appBar:
AppBar
(
title:
Text
(
'Imprimer ce trousseau'
)),
body:
PdfPreview
(
build:
(
format
)
=
>
_generateWalletProvider
.
printWallet
(
sentence
),
),
),
);
}
}
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