Added new page
This commit is contained in:
parent
5c55580272
commit
f52ead3e9d
1 changed files with 65 additions and 0 deletions
65
lib/pages/application_info_page.dart
Normal file
65
lib/pages/application_info_page.dart
Normal file
|
|
@ -0,0 +1,65 @@
|
||||||
|
import 'package:flutter/material.dart';
|
||||||
|
import 'package:gap/gap.dart';
|
||||||
|
import 'package:ocbo_esign_mobile/blocs/application/functions/bloc_getapplication.dart';
|
||||||
|
import 'package:ocbo_esign_mobile/widgets/box_widget.dart';
|
||||||
|
import 'package:ocbo_esign_mobile/widgets/text_widget.dart';
|
||||||
|
|
||||||
|
class ApplicationInfoPage extends StatefulWidget {
|
||||||
|
const ApplicationInfoPage({super.key});
|
||||||
|
|
||||||
|
@override
|
||||||
|
State<ApplicationInfoPage> createState() => _ApplicationInfoPageState();
|
||||||
|
}
|
||||||
|
|
||||||
|
class _ApplicationInfoPageState extends State<ApplicationInfoPage> {
|
||||||
|
late String _applicationNo = '';
|
||||||
|
|
||||||
|
void _getInfo() async {
|
||||||
|
final applicationBloc = await blocGetApplication(context);
|
||||||
|
|
||||||
|
setState(() {
|
||||||
|
_applicationNo = applicationBloc;
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
@override
|
||||||
|
void initState() {
|
||||||
|
_getInfo();
|
||||||
|
super.initState();
|
||||||
|
}
|
||||||
|
|
||||||
|
@override
|
||||||
|
Widget build(BuildContext context) {
|
||||||
|
return 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(88),
|
||||||
|
BoxWidget(
|
||||||
|
circular: 16,
|
||||||
|
content: Center(child: TextWidget(text: _applicationNo, bold: true)),
|
||||||
|
),
|
||||||
|
const Gap(16),
|
||||||
|
BoxWidget(
|
||||||
|
circular: 16,
|
||||||
|
content: Center(child: TextWidget(text: _applicationNo, bold: true)),
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue