72 lines
2 KiB
Dart
72 lines
2 KiB
Dart
import 'package:flutter/material.dart';
|
|
import 'package:gap/gap.dart';
|
|
import 'package:ocbo_esign_mobile/blocs/user/functions/bloc_getuser.dart';
|
|
import 'package:ocbo_esign_mobile/widgets/image_widget.dart';
|
|
import 'package:ocbo_esign_mobile/widgets/text_widget.dart';
|
|
|
|
class ApprovalPage extends StatefulWidget {
|
|
const ApprovalPage({super.key});
|
|
|
|
@override
|
|
State<ApprovalPage> createState() => _ApprovalPageState();
|
|
}
|
|
|
|
class _ApprovalPageState extends State<ApprovalPage> {
|
|
late String blocUser = '';
|
|
|
|
Future<String> _getUser() async {
|
|
final user = await blocGetUser(context);
|
|
return user;
|
|
}
|
|
|
|
void _initUser() async {
|
|
blocUser = await _getUser();
|
|
}
|
|
|
|
@override
|
|
void initState() {
|
|
_initUser();
|
|
super.initState();
|
|
}
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Scaffold(
|
|
resizeToAvoidBottomInset: false,
|
|
body: Container(
|
|
alignment: Alignment.center,
|
|
height: MediaQuery.of(context).size.height,
|
|
decoration: const BoxDecoration(
|
|
gradient: LinearGradient(
|
|
begin: Alignment.topCenter,
|
|
end: Alignment.bottomCenter,
|
|
colors: [
|
|
Color.fromRGBO(37, 25, 44, 1),
|
|
Color.fromRGBO(22, 33, 44, 1),
|
|
Color.fromRGBO(22, 33, 44, 1),
|
|
Color.fromRGBO(22, 33, 44, 1),
|
|
Color.fromRGBO(25, 46, 41, 1),
|
|
],
|
|
),
|
|
),
|
|
child: Column(
|
|
children: [
|
|
const Gap(76),
|
|
Row(
|
|
children: [
|
|
const Gap(16),
|
|
const ImageWidget(imagePath: 'assets/logo.png', size: 32, measureByHeight: true),
|
|
const Gap(8),
|
|
TextWidget(text: blocUser, size: 16, bold: true),
|
|
const MaxGap(80),
|
|
Icon(Icons.menu, size: 20, color: Colors.white),
|
|
],
|
|
),
|
|
const Gap(32),
|
|
TextWidget(text: blocUser, size: 16, bold: true),
|
|
],
|
|
),
|
|
),
|
|
);
|
|
}
|
|
}
|