@@ -14,8 +14,7 @@ import 'package:sentinelx/widgets/sentinelx_icons.dart';
1414class TabTrackSegwit extends StatefulWidget {
1515 final GlobalKey <PushUpCameraWrapperState > cameraKey;
1616
17- TabTrackSegwit (Key key, this .cameraKey)
18- : super (key: key);
17+ TabTrackSegwit (Key key, this .cameraKey) : super (key: key);
1918
2019 @override
2120 TabTrackSegwitState createState () => TabTrackSegwitState ();
@@ -46,20 +45,30 @@ class TabTrackSegwitState extends State<TabTrackSegwit> {
4645 child: Column (
4746 children: < Widget > [
4847 Container (
49- margin: EdgeInsets .symmetric (horizontal: 8 , vertical: 12 ),
50- child: Row (
48+ margin: EdgeInsets .symmetric (horizontal: 4 , vertical: 4 ),
49+ child: Column (
5150 children: < Widget > [
52- Icon (
53- SentinelxIcons .segwit,
54- size: 24 ,
55- color: Colors .grey[400 ],
51+ Align (
52+ child: Icon (
53+ SentinelxIcons .segwit,
54+ size: 24 ,
55+ color: Colors .grey[400 ],
56+ ),
57+ alignment: Alignment .topLeft,
5658 ),
59+ Padding (padding: EdgeInsets .all (6 ),),
5760 Container (
58- margin: EdgeInsets .only (left: 16 ),
61+ margin: EdgeInsets .only (left: 4 ),
5962 child: Text (
6063 "bitcoin wallet via segwit YPUB/ZPUB (BIP49/84)" ,
61- style: TextStyle (color: Colors .grey[400 ]),
62- ))
64+ overflow: TextOverflow .ellipsis,
65+ maxLines: 2 ,
66+ style: Theme
67+ .of (context)
68+ .textTheme
69+ .subtitle
70+ .copyWith (color: Colors .grey[400 ]),
71+ )),
6372 ],
6473 ),
6574 ),
@@ -83,15 +92,17 @@ class TabTrackSegwitState extends State<TabTrackSegwit> {
8392 ),
8493 maxLines: 3 ,
8594 ),
86-
8795 ),
8896 Align (
8997 alignment: Alignment .topRight,
9098 child: IconButton (
91- icon: Icon (SentinelxIcons .qr_scan, size: 22 ,),
99+ icon: Icon (
100+ SentinelxIcons .qr_scan,
101+ size: 22 ,
102+ ),
92103 onPressed: () async {
93- await SystemChannels .textInput. invokeMethod (
94- 'TextInput.hide' );
104+ await SystemChannels .textInput
105+ . invokeMethod ( 'TextInput.hide' );
95106 widget.cameraKey.currentState.start ();
96107 }),
97108 )
@@ -184,15 +195,21 @@ class TabTrackSegwitState extends State<TabTrackSegwit> {
184195
185196 void _showSuccessSnackBar (String msg) {
186197 final snackBar = SnackBar (
187- content: Text (msg, style: TextStyle (color: Colors .white),),
198+ content: Text (
199+ msg,
200+ style: TextStyle (color: Colors .white),
201+ ),
188202 backgroundColor: Color (0xff5BD38D ),
189203 );
190204 Scaffold .of (context).showSnackBar (snackBar);
191205 }
192206
193207 void _showError (String msg) {
194208 final snackBar = SnackBar (
195- content: Text (msg, style: TextStyle (color: Colors .white),),
209+ content: Text (
210+ msg,
211+ style: TextStyle (color: Colors .white),
212+ ),
196213 backgroundColor: Color (0xffD55968 ),
197214 );
198215 Scaffold .of (context).showSnackBar (snackBar);
0 commit comments