token_login_view.dart
1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
import 'package:flutter/material.dart';
import 'package:get/get.dart';
import '../controllers/developer_options_controller.dart';
class TokenLoginView extends GetView<DeveloperOptionsController> {
const TokenLoginView({super.key});
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(title: const Text('Token Login')),
body: Padding(
padding: const EdgeInsets.all(16),
child: Column(
crossAxisAlignment: CrossAxisAlignment.stretch,
children: [
TextField(
controller: controller.tokenController,
minLines: 3,
maxLines: 6,
decoration: const InputDecoration(
border: OutlineInputBorder(),
labelText: 'Access token',
),
),
const SizedBox(height: 16),
ElevatedButton(
onPressed: controller.saveAccessToken,
child: const Text('Login'),
),
],
),
),
);
}
}