Skip to content

Commit 51e730c

Browse files
author
Gonçalo Montes Palma
committed
UI
Gif
1 parent 27902c7 commit 51e730c

File tree

3 files changed

+19
-20
lines changed

3 files changed

+19
-20
lines changed

lib/main.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class MyApp extends StatelessWidget {
1515
@override
1616
Widget build(BuildContext context) {
1717
return MaterialApp(
18-
title: 'Flutter Demo',
18+
title: 'RSA Generator',
1919
theme: ThemeData(
2020
primarySwatch: Colors.blue,
2121
),

lib/ui/home_page.dart

Lines changed: 18 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -117,22 +117,21 @@ class _MyHomePageState extends State<MyHomePage> {
117117
);
118118
} else {
119119
return Container(
120-
color: Colors.red,
121120
);
122121
}
123122
}),
124123
),
125124
Expanded(
126125
flex: 3,
127-
child: FutureBuilder(
128-
future: futurePemKey,
129-
builder: (context, snapshot) {
130-
if (snapshot.hasData) {
131-
return Card(
132-
child: Container(
133-
padding: EdgeInsets.all(8),
134-
margin: EdgeInsets.all(8),
135-
child: SingleChildScrollView(
126+
child: Card(
127+
child: Container(
128+
padding: EdgeInsets.all(8),
129+
margin: EdgeInsets.all(8),
130+
child: FutureBuilder(
131+
future: futurePemKey,
132+
builder: (context, snapshot) {
133+
if (snapshot.hasData) {
134+
return SingleChildScrollView(
136135
// the inkwell is used to register the taps
137136
// in order to be able to copy the text
138137
child: InkWell(
@@ -145,15 +144,15 @@ class _MyHomePageState extends State<MyHomePage> {
145144
));
146145
},
147146
child: Text(snapshot.data)),
148-
),
149-
),
150-
);
151-
} else {
152-
return Center(
153-
child: Text("Your keys will appear here"),
154-
);
155-
}
156-
}),
147+
);
148+
} else {
149+
return Center(
150+
child: Text("Your keys will appear here"),
151+
);
152+
}
153+
}),
154+
),
155+
),
157156
)
158157
],
159158
),

rsa_generator.gif

3.42 MB
Loading

0 commit comments

Comments
 (0)