Updated pages
This commit is contained in:
parent
1b86907d1b
commit
a60d6284ca
3 changed files with 103 additions and 9 deletions
|
|
@ -1,10 +1,71 @@
|
|||
import 'package:flutter/material.dart';
|
||||
import 'package:gap/gap.dart';
|
||||
import 'package:ocbo_esign_validator/blocs/user/functions/bloc_getuser.dart';
|
||||
import 'package:ocbo_esign_validator/widgets/image_widget.dart';
|
||||
import 'package:ocbo_esign_validator/widgets/text_widget.dart';
|
||||
|
||||
class ApprovalPage extends StatelessWidget {
|
||||
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();
|
||||
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(39, 26, 47, 1),
|
||||
Color.fromRGBO(22, 33, 44, 1),
|
||||
Color.fromRGBO(22, 33, 44, 1),
|
||||
Color.fromRGBO(24, 45, 40, 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),
|
||||
],
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue