Make Key Management Page nicer
This commit is contained in:
parent
7c5251fb99
commit
1cff53640e
@ -190,10 +190,6 @@ class _MyHomePageState extends State<MyHomePage> {
|
|||||||
child: Column(
|
child: Column(
|
||||||
mainAxisAlignment: MainAxisAlignment.center,
|
mainAxisAlignment: MainAxisAlignment.center,
|
||||||
children: <Widget>[
|
children: <Widget>[
|
||||||
TextButton(
|
|
||||||
onPressed: () => authentikApiState.start(key),
|
|
||||||
child: Text("Oauth2 Login"),
|
|
||||||
),
|
|
||||||
Text('Current output:'),
|
Text('Current output:'),
|
||||||
Text(outputText, style: Theme.of(context).textTheme.headlineMedium),
|
Text(outputText, style: Theme.of(context).textTheme.headlineMedium),
|
||||||
],
|
],
|
||||||
@ -203,7 +199,44 @@ class _MyHomePageState extends State<MyHomePage> {
|
|||||||
final bodyComponentInfo = Center(
|
final bodyComponentInfo = Center(
|
||||||
child: Column(
|
child: Column(
|
||||||
mainAxisAlignment: MainAxisAlignment.center,
|
mainAxisAlignment: MainAxisAlignment.center,
|
||||||
children: <Widget>[Center(child: Text('Info\n\n$key'))],
|
children: <Widget>[
|
||||||
|
Padding(
|
||||||
|
padding: EdgeInsets.all(20),
|
||||||
|
child: Card(
|
||||||
|
child: Column(
|
||||||
|
children: [
|
||||||
|
Padding(
|
||||||
|
padding: EdgeInsets.all(20),
|
||||||
|
child: Row(
|
||||||
|
mainAxisAlignment: MainAxisAlignment.center,
|
||||||
|
children: [
|
||||||
|
Padding(
|
||||||
|
padding: EdgeInsets.only(right: 15),
|
||||||
|
child: Icon(Icons.key, size: 25),
|
||||||
|
),
|
||||||
|
Text(
|
||||||
|
"Your Current Key",
|
||||||
|
style: TextStyle(fontSize: 25),
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
),
|
||||||
|
Padding(
|
||||||
|
padding: EdgeInsets.fromLTRB(20, 0, 20, 20),
|
||||||
|
child: Text(key, style: TextStyle(fontSize: 15)),
|
||||||
|
),
|
||||||
|
Padding(
|
||||||
|
padding: EdgeInsets.all(20),
|
||||||
|
child: TextButton(
|
||||||
|
onPressed: () => authentikApiState.start(key),
|
||||||
|
child: Text("Manage Keys Registered To Server"),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
],
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -259,7 +292,7 @@ class _MyHomePageState extends State<MyHomePage> {
|
|||||||
},
|
},
|
||||||
),
|
),
|
||||||
ListTile(
|
ListTile(
|
||||||
title: const Text('Info Page'),
|
title: const Text('Key Management'),
|
||||||
onTap: () {
|
onTap: () {
|
||||||
setState(() {
|
setState(() {
|
||||||
navIndex = 1;
|
navIndex = 1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user