65 lines
1.8 KiB
Dart
65 lines
1.8 KiB
Dart
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)),
|
|
),
|
|
],
|
|
),
|
|
);
|
|
}
|
|
}
|