2072 lines
139 KiB
Dart
2072 lines
139 KiB
Dart
import '/backend/api_requests/api_calls.dart';
|
|
import '/components/appbar_widget.dart';
|
|
import '/components/nav_bar1_widget.dart';
|
|
import '/components/no_permission_widget.dart';
|
|
import '/flutterlib/flutter_button_tabbar.dart';
|
|
import '/flutterlib/flutter_theme.dart';
|
|
import '/flutterlib/flutter_util.dart';
|
|
import '/flutterlib/flutter_widgets.dart';
|
|
import 'package:flutter/material.dart';
|
|
import 'package:flutter/scheduler.dart';
|
|
import 'package:flutter/services.dart';
|
|
import 'package:flutter_svg/flutter_svg.dart';
|
|
import 'package:google_fonts/google_fonts.dart';
|
|
import 'package:provider/provider.dart';
|
|
import 'account1_model.dart';
|
|
export 'account1_model.dart';
|
|
|
|
class Account1Widget extends StatefulWidget {
|
|
const Account1Widget({Key? key}) : super(key: key);
|
|
|
|
@override
|
|
_Account1WidgetState createState() => _Account1WidgetState();
|
|
}
|
|
|
|
class _Account1WidgetState extends State<Account1Widget>
|
|
with TickerProviderStateMixin {
|
|
late Account1Model _model;
|
|
|
|
final scaffoldKey = GlobalKey<ScaffoldState>();
|
|
|
|
@override
|
|
void initState() {
|
|
super.initState();
|
|
_model = createModel(context, () => Account1Model());
|
|
|
|
// On page load action.
|
|
SchedulerBinding.instance.addPostFrameCallback((_) async {
|
|
_model.apiResult20 =
|
|
await NumstationGroup.checkRoleHasPermissionCall.call(
|
|
token: FFAppState().token,
|
|
roleId: FFAppState().roleID,
|
|
permissionId: 20,
|
|
);
|
|
if ((_model.apiResult20?.succeeded ?? true)) {
|
|
setState(() {
|
|
_model.checkPermission20 = getJsonField(
|
|
(_model.apiResult20?.jsonBody ?? ''),
|
|
r'''$.success''',
|
|
);
|
|
});
|
|
}
|
|
});
|
|
|
|
_model.tabBarController = TabController(
|
|
vsync: this,
|
|
length: 2,
|
|
initialIndex: 0,
|
|
)..addListener(() => setState(() {}));
|
|
_model.textController1 ??= TextEditingController();
|
|
_model.textFieldFocusNode1 ??= FocusNode();
|
|
|
|
_model.textController2 ??= TextEditingController();
|
|
_model.textFieldFocusNode2 ??= FocusNode();
|
|
|
|
_model.textController3 ??= TextEditingController();
|
|
_model.textFieldFocusNode3 ??= FocusNode();
|
|
}
|
|
|
|
@override
|
|
void dispose() {
|
|
_model.dispose();
|
|
|
|
super.dispose();
|
|
}
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
if (isiOS) {
|
|
SystemChrome.setSystemUIOverlayStyle(
|
|
SystemUiOverlayStyle(
|
|
statusBarBrightness: Theme.of(context).brightness,
|
|
systemStatusBarContrastEnforced: true,
|
|
),
|
|
);
|
|
}
|
|
|
|
context.watch<FFAppState>();
|
|
|
|
return GestureDetector(
|
|
onTap: () => _model.unfocusNode.canRequestFocus
|
|
? FocusScope.of(context).requestFocus(_model.unfocusNode)
|
|
: FocusScope.of(context).unfocus(),
|
|
child: Scaffold(
|
|
key: scaffoldKey,
|
|
backgroundColor: Color(0xFFEBEBE4),
|
|
drawer: Container(
|
|
width: 180.0,
|
|
child: Drawer(
|
|
elevation: 16.0,
|
|
child: Container(
|
|
width: 100.0,
|
|
height: 100.0,
|
|
decoration: BoxDecoration(
|
|
color: Color(0xFF009B9A),
|
|
),
|
|
child: Column(
|
|
mainAxisSize: MainAxisSize.max,
|
|
children: [
|
|
Padding(
|
|
padding:
|
|
EdgeInsetsDirectional.fromSTEB(0.0, 80.0, 0.0, 0.0),
|
|
child: Row(
|
|
mainAxisSize: MainAxisSize.max,
|
|
children: [
|
|
Container(
|
|
width: 180.0,
|
|
height: 61.0,
|
|
decoration: BoxDecoration(
|
|
color: Color(0xFF009B9A),
|
|
),
|
|
child: InkWell(
|
|
splashColor: Colors.transparent,
|
|
focusColor: Colors.transparent,
|
|
hoverColor: Colors.transparent,
|
|
highlightColor: Colors.transparent,
|
|
onTap: () async {
|
|
context.pushNamed('account');
|
|
},
|
|
child: Row(
|
|
mainAxisSize: MainAxisSize.max,
|
|
mainAxisAlignment: MainAxisAlignment.start,
|
|
children: [
|
|
Padding(
|
|
padding: EdgeInsetsDirectional.fromSTEB(
|
|
15.0, 8.0, 0.0, 0.0),
|
|
child: Container(
|
|
width: 40.0,
|
|
height: 40.0,
|
|
decoration: BoxDecoration(
|
|
color: FlutterTheme.of(context)
|
|
.secondaryBackground,
|
|
shape: BoxShape.circle,
|
|
),
|
|
child: Align(
|
|
alignment: AlignmentDirectional(0.0, 0.0),
|
|
child: ClipRRect(
|
|
borderRadius:
|
|
BorderRadius.circular(8.0),
|
|
child: SvgPicture.asset(
|
|
'assets/images/company.svg',
|
|
width: 30.0,
|
|
height: 30.0,
|
|
fit: BoxFit.contain,
|
|
),
|
|
),
|
|
),
|
|
),
|
|
),
|
|
Padding(
|
|
padding: EdgeInsetsDirectional.fromSTEB(
|
|
8.0, 8.0, 0.0, 0.0),
|
|
child: Text(
|
|
FFLocalizations.of(context).getText(
|
|
'dy9r2dk4' /* ABC Ltd */,
|
|
),
|
|
style: FlutterTheme.of(context)
|
|
.bodyMedium
|
|
.override(
|
|
fontFamily: 'Readex Pro',
|
|
color: Colors.white,
|
|
fontSize: 16.0,
|
|
),
|
|
),
|
|
),
|
|
],
|
|
),
|
|
),
|
|
),
|
|
],
|
|
),
|
|
),
|
|
Container(
|
|
width: 180.0,
|
|
height: 61.0,
|
|
decoration: BoxDecoration(
|
|
color: Color(0xFF009B9A),
|
|
),
|
|
child: InkWell(
|
|
splashColor: Colors.transparent,
|
|
focusColor: Colors.transparent,
|
|
hoverColor: Colors.transparent,
|
|
highlightColor: Colors.transparent,
|
|
onTap: () async {
|
|
context.pushNamed('account1');
|
|
},
|
|
child: Row(
|
|
mainAxisSize: MainAxisSize.max,
|
|
mainAxisAlignment: MainAxisAlignment.start,
|
|
children: [
|
|
ClipRRect(
|
|
borderRadius: BorderRadius.circular(8.0),
|
|
child: SvgPicture.asset(
|
|
'assets/images/Group_2640.svg',
|
|
width: 0.0,
|
|
height: 0.0,
|
|
fit: BoxFit.contain,
|
|
),
|
|
),
|
|
Align(
|
|
alignment: AlignmentDirectional(0.0, 0.0),
|
|
child: Padding(
|
|
padding: EdgeInsetsDirectional.fromSTEB(
|
|
5.0, 0.0, 0.0, 0.0),
|
|
child: ClipRRect(
|
|
borderRadius: BorderRadius.circular(8.0),
|
|
child: Image.asset(
|
|
'assets/images/account.png',
|
|
width: 50.0,
|
|
height: 50.0,
|
|
fit: BoxFit.cover,
|
|
),
|
|
),
|
|
),
|
|
),
|
|
Padding(
|
|
padding: EdgeInsetsDirectional.fromSTEB(
|
|
8.0, 0.0, 0.0, 0.0),
|
|
child: Text(
|
|
FFLocalizations.of(context).getText(
|
|
'zqwx7r8y' /* Account */,
|
|
),
|
|
style: FlutterTheme.of(context)
|
|
.bodyMedium
|
|
.override(
|
|
fontFamily: 'Readex Pro',
|
|
color: Colors.white,
|
|
fontSize: 16.0,
|
|
),
|
|
),
|
|
),
|
|
],
|
|
),
|
|
),
|
|
),
|
|
Container(
|
|
width: 180.0,
|
|
height: 61.0,
|
|
decoration: BoxDecoration(
|
|
color: Color(0xFF009B9A),
|
|
),
|
|
child: InkWell(
|
|
splashColor: Colors.transparent,
|
|
focusColor: Colors.transparent,
|
|
hoverColor: Colors.transparent,
|
|
highlightColor: Colors.transparent,
|
|
onTap: () async {
|
|
context.pushNamed('tnc');
|
|
},
|
|
child: Row(
|
|
mainAxisSize: MainAxisSize.max,
|
|
mainAxisAlignment: MainAxisAlignment.start,
|
|
children: [
|
|
ClipRRect(
|
|
borderRadius: BorderRadius.circular(8.0),
|
|
child: SvgPicture.asset(
|
|
'assets/images/document.svg',
|
|
width: 0.0,
|
|
height: 0.0,
|
|
fit: BoxFit.contain,
|
|
),
|
|
),
|
|
Align(
|
|
alignment: AlignmentDirectional(0.0, 0.0),
|
|
child: Padding(
|
|
padding: EdgeInsetsDirectional.fromSTEB(
|
|
16.0, 0.0, 0.0, 0.0),
|
|
child: ClipRRect(
|
|
borderRadius: BorderRadius.circular(8.0),
|
|
child: SvgPicture.asset(
|
|
'assets/images/tnc.svg',
|
|
width: 30.0,
|
|
height: 30.0,
|
|
fit: BoxFit.cover,
|
|
),
|
|
),
|
|
),
|
|
),
|
|
Padding(
|
|
padding: EdgeInsetsDirectional.fromSTEB(
|
|
17.0, 0.0, 0.0, 0.0),
|
|
child: Text(
|
|
FFLocalizations.of(context).getText(
|
|
'bzqkdp4k' /* T&C */,
|
|
),
|
|
style: FlutterTheme.of(context)
|
|
.bodyMedium
|
|
.override(
|
|
fontFamily: 'Readex Pro',
|
|
color: Colors.white,
|
|
fontSize: 16.0,
|
|
),
|
|
),
|
|
),
|
|
ClipRRect(
|
|
borderRadius: BorderRadius.circular(8.0),
|
|
child: SvgPicture.asset(
|
|
'assets/images/Group_2640.svg',
|
|
width: 0.0,
|
|
height: 0.0,
|
|
fit: BoxFit.fitHeight,
|
|
),
|
|
),
|
|
],
|
|
),
|
|
),
|
|
),
|
|
Container(
|
|
width: 180.0,
|
|
height: 61.0,
|
|
decoration: BoxDecoration(
|
|
color: Color(0xFF009B9A),
|
|
),
|
|
child: InkWell(
|
|
splashColor: Colors.transparent,
|
|
focusColor: Colors.transparent,
|
|
hoverColor: Colors.transparent,
|
|
highlightColor: Colors.transparent,
|
|
onTap: () async {
|
|
context.pushNamed('policy');
|
|
},
|
|
child: Row(
|
|
mainAxisSize: MainAxisSize.max,
|
|
mainAxisAlignment: MainAxisAlignment.start,
|
|
children: [
|
|
ClipRRect(
|
|
borderRadius: BorderRadius.circular(8.0),
|
|
child: SvgPicture.asset(
|
|
'assets/images/Group_2640.svg',
|
|
width: 0.0,
|
|
height: 0.0,
|
|
fit: BoxFit.contain,
|
|
),
|
|
),
|
|
Align(
|
|
alignment: AlignmentDirectional(0.0, 0.0),
|
|
child: Padding(
|
|
padding: EdgeInsetsDirectional.fromSTEB(
|
|
16.0, 0.0, 0.0, 0.0),
|
|
child: ClipRRect(
|
|
borderRadius: BorderRadius.circular(8.0),
|
|
child: SvgPicture.asset(
|
|
'assets/images/pp.svg',
|
|
width: 30.0,
|
|
height: 30.0,
|
|
fit: BoxFit.cover,
|
|
),
|
|
),
|
|
),
|
|
),
|
|
Padding(
|
|
padding: EdgeInsetsDirectional.fromSTEB(
|
|
16.0, 0.0, 0.0, 0.0),
|
|
child: Text(
|
|
FFLocalizations.of(context).getText(
|
|
'h8fl21mn' /* Privacy
|
|
Policy */
|
|
,
|
|
),
|
|
style: FlutterTheme.of(context)
|
|
.bodyMedium
|
|
.override(
|
|
fontFamily: 'Readex Pro',
|
|
color: Colors.white,
|
|
fontSize: 16.0,
|
|
),
|
|
),
|
|
),
|
|
],
|
|
),
|
|
),
|
|
),
|
|
Container(
|
|
width: 180.0,
|
|
height: 61.0,
|
|
decoration: BoxDecoration(
|
|
color: Color(0xFF009B9A),
|
|
),
|
|
child: InkWell(
|
|
splashColor: Colors.transparent,
|
|
focusColor: Colors.transparent,
|
|
hoverColor: Colors.transparent,
|
|
highlightColor: Colors.transparent,
|
|
onTap: () async {
|
|
context.pushNamed('language');
|
|
},
|
|
child: Row(
|
|
mainAxisSize: MainAxisSize.max,
|
|
mainAxisAlignment: MainAxisAlignment.start,
|
|
children: [
|
|
ClipRRect(
|
|
borderRadius: BorderRadius.circular(8.0),
|
|
child: SvgPicture.asset(
|
|
'assets/images/Group_2640.svg',
|
|
width: 0.0,
|
|
height: 0.0,
|
|
fit: BoxFit.contain,
|
|
),
|
|
),
|
|
Align(
|
|
alignment: AlignmentDirectional(0.0, 0.0),
|
|
child: Padding(
|
|
padding: EdgeInsetsDirectional.fromSTEB(
|
|
16.0, 0.0, 0.0, 0.0),
|
|
child: ClipRRect(
|
|
borderRadius: BorderRadius.circular(8.0),
|
|
child: SvgPicture.asset(
|
|
'assets/images/language.svg',
|
|
width: 30.0,
|
|
height: 30.0,
|
|
fit: BoxFit.contain,
|
|
),
|
|
),
|
|
),
|
|
),
|
|
Padding(
|
|
padding: EdgeInsetsDirectional.fromSTEB(
|
|
15.0, 0.0, 0.0, 0.0),
|
|
child: Text(
|
|
FFLocalizations.of(context).getText(
|
|
'3i0zzyxu' /* Languages */,
|
|
),
|
|
style: FlutterTheme.of(context)
|
|
.bodyMedium
|
|
.override(
|
|
fontFamily: 'Readex Pro',
|
|
color: Colors.white,
|
|
fontSize: 16.0,
|
|
),
|
|
),
|
|
),
|
|
],
|
|
),
|
|
),
|
|
),
|
|
Container(
|
|
width: 180.0,
|
|
height: 61.0,
|
|
decoration: BoxDecoration(
|
|
color: Color(0xFF009B9A),
|
|
),
|
|
child: InkWell(
|
|
splashColor: Colors.transparent,
|
|
focusColor: Colors.transparent,
|
|
hoverColor: Colors.transparent,
|
|
highlightColor: Colors.transparent,
|
|
onTap: () async {
|
|
context.pushNamed('setting');
|
|
},
|
|
child: Row(
|
|
mainAxisSize: MainAxisSize.max,
|
|
mainAxisAlignment: MainAxisAlignment.start,
|
|
children: [
|
|
ClipRRect(
|
|
borderRadius: BorderRadius.circular(8.0),
|
|
child: SvgPicture.asset(
|
|
'assets/images/Group_2640.svg',
|
|
width: 0.0,
|
|
height: 0.0,
|
|
fit: BoxFit.contain,
|
|
),
|
|
),
|
|
Align(
|
|
alignment: AlignmentDirectional(0.0, 0.0),
|
|
child: Padding(
|
|
padding: EdgeInsetsDirectional.fromSTEB(
|
|
16.0, 0.0, 0.0, 0.0),
|
|
child: ClipRRect(
|
|
borderRadius: BorderRadius.circular(8.0),
|
|
child: SvgPicture.asset(
|
|
'assets/images/setting-2.svg',
|
|
width: 30.0,
|
|
height: 30.0,
|
|
fit: BoxFit.contain,
|
|
),
|
|
),
|
|
),
|
|
),
|
|
Padding(
|
|
padding: EdgeInsetsDirectional.fromSTEB(
|
|
15.0, 0.0, 0.0, 0.0),
|
|
child: Text(
|
|
FFLocalizations.of(context).getText(
|
|
'nxivwhiz' /* Settings */,
|
|
),
|
|
style: FlutterTheme.of(context)
|
|
.bodyMedium
|
|
.override(
|
|
fontFamily: 'Readex Pro',
|
|
color: Colors.white,
|
|
fontSize: 16.0,
|
|
),
|
|
),
|
|
),
|
|
],
|
|
),
|
|
),
|
|
),
|
|
],
|
|
),
|
|
),
|
|
),
|
|
),
|
|
appBar: PreferredSize(
|
|
preferredSize: Size.fromHeight(0.0),
|
|
child: AppBar(
|
|
backgroundColor: Color(0xFFE7E36B),
|
|
automaticallyImplyLeading: false,
|
|
actions: [],
|
|
centerTitle: false,
|
|
elevation: 0.0,
|
|
),
|
|
),
|
|
body: SafeArea(
|
|
top: true,
|
|
child: Stack(
|
|
children: [
|
|
Column(
|
|
mainAxisSize: MainAxisSize.max,
|
|
children: [
|
|
Padding(
|
|
padding:
|
|
EdgeInsetsDirectional.fromSTEB(0.0, 100.0, 0.0, 0.0),
|
|
child: Column(
|
|
mainAxisSize: MainAxisSize.max,
|
|
children: [
|
|
Padding(
|
|
padding: EdgeInsetsDirectional.fromSTEB(
|
|
0.0, 16.0, 16.0, 0.0),
|
|
child: Row(
|
|
mainAxisSize: MainAxisSize.max,
|
|
mainAxisAlignment: MainAxisAlignment.end,
|
|
children: [
|
|
Align(
|
|
alignment: AlignmentDirectional(1.0, 0.0),
|
|
child: FFButtonWidget(
|
|
onPressed: () async {
|
|
_model.logout =
|
|
await NumstationGroup.logoutCall.call(
|
|
token: FFAppState().token,
|
|
);
|
|
if ((_model.logout?.succeeded ?? true)) {
|
|
context.pushNamed('login');
|
|
} else {
|
|
await showDialog(
|
|
context: context,
|
|
builder: (alertDialogContext) {
|
|
return AlertDialog(
|
|
content: Text('Logout failed.'),
|
|
actions: [
|
|
TextButton(
|
|
onPressed: () => Navigator.pop(
|
|
alertDialogContext),
|
|
child: Text('Ok'),
|
|
),
|
|
],
|
|
);
|
|
},
|
|
);
|
|
}
|
|
|
|
setState(() {});
|
|
},
|
|
text: FFLocalizations.of(context).getText(
|
|
'dxedh7rp' /* Log out */,
|
|
),
|
|
options: FFButtonOptions(
|
|
width: 120.0,
|
|
height: 50.0,
|
|
padding: EdgeInsetsDirectional.fromSTEB(
|
|
24.0, 0.0, 24.0, 0.0),
|
|
iconPadding: EdgeInsetsDirectional.fromSTEB(
|
|
0.0, 0.0, 0.0, 0.0),
|
|
color: Color(0xFF9B0025),
|
|
textStyle: FlutterTheme.of(context)
|
|
.titleSmall
|
|
.override(
|
|
fontFamily: 'Readex Pro',
|
|
color: Colors.white,
|
|
fontSize: 20.0,
|
|
),
|
|
elevation: 3.0,
|
|
borderSide: BorderSide(
|
|
color: Colors.transparent,
|
|
width: 1.0,
|
|
),
|
|
borderRadius: BorderRadius.circular(40.0),
|
|
),
|
|
),
|
|
),
|
|
],
|
|
),
|
|
),
|
|
],
|
|
),
|
|
),
|
|
Padding(
|
|
padding:
|
|
EdgeInsetsDirectional.fromSTEB(0.0, 16.0, 0.0, 0.0),
|
|
child: Row(
|
|
mainAxisSize: MainAxisSize.max,
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
children: [
|
|
Text(
|
|
FFLocalizations.of(context).getText(
|
|
'3nr4j0r5' /* Account */,
|
|
),
|
|
style:
|
|
FlutterTheme.of(context).bodyMedium.override(
|
|
fontFamily: 'Readex Pro',
|
|
fontSize: 24.0,
|
|
),
|
|
),
|
|
],
|
|
),
|
|
),
|
|
Expanded(
|
|
child: Column(
|
|
children: [
|
|
Align(
|
|
alignment: Alignment(0.0, 0),
|
|
child: FlutterButtonTabBar(
|
|
useToggleButtonStyle: true,
|
|
labelStyle:
|
|
FlutterTheme.of(context).titleMedium,
|
|
unselectedLabelStyle: TextStyle(),
|
|
labelColor: Color(0xFF364257),
|
|
unselectedLabelColor: Colors.white,
|
|
backgroundColor: Colors.white,
|
|
unselectedBackgroundColor: Color(0xFF364257),
|
|
unselectedBorderColor:
|
|
FlutterTheme.of(context).alternate,
|
|
borderWidth: 2.0,
|
|
borderRadius: 0.0,
|
|
elevation: 0.0,
|
|
labelPadding: EdgeInsetsDirectional.fromSTEB(
|
|
0.0, 15.0, 0.0, 15.0),
|
|
buttonMargin: EdgeInsetsDirectional.fromSTEB(
|
|
8.0, 0.0, 8.0, 0.0),
|
|
padding: EdgeInsetsDirectional.fromSTEB(
|
|
14.0, 4.0, 14.0, 4.0),
|
|
tabs: [
|
|
Tab(
|
|
text: FFLocalizations.of(context).getText(
|
|
'cliyise8' /* My Account */,
|
|
),
|
|
icon: Icon(
|
|
Icons.account_circle_outlined,
|
|
size: 30.0,
|
|
),
|
|
),
|
|
Tab(
|
|
text: FFLocalizations.of(context).getText(
|
|
'5h7ugmxa' /* Subscription */,
|
|
),
|
|
icon: Icon(
|
|
Icons.receipt_long_rounded,
|
|
size: 30.0,
|
|
),
|
|
),
|
|
],
|
|
controller: _model.tabBarController,
|
|
),
|
|
),
|
|
Expanded(
|
|
child: TabBarView(
|
|
controller: _model.tabBarController,
|
|
physics: const NeverScrollableScrollPhysics(),
|
|
children: [
|
|
Padding(
|
|
padding: EdgeInsetsDirectional.fromSTEB(
|
|
0.0, 0.0, 0.0, 100.0),
|
|
child: SingleChildScrollView(
|
|
child: Column(
|
|
mainAxisSize: MainAxisSize.max,
|
|
children: [
|
|
Stack(
|
|
children: [
|
|
Container(
|
|
width: 358.0,
|
|
height: 550.0,
|
|
decoration: BoxDecoration(
|
|
color:
|
|
FlutterTheme.of(context)
|
|
.secondaryBackground,
|
|
),
|
|
child: Column(
|
|
mainAxisSize: MainAxisSize.max,
|
|
children: [
|
|
Padding(
|
|
padding: EdgeInsetsDirectional
|
|
.fromSTEB(
|
|
0.0, 20.0, 0.0, 0.0),
|
|
child: Row(
|
|
mainAxisSize:
|
|
MainAxisSize.max,
|
|
mainAxisAlignment:
|
|
MainAxisAlignment
|
|
.center,
|
|
children: [
|
|
Container(
|
|
width: 140.0,
|
|
height: 140.0,
|
|
decoration:
|
|
BoxDecoration(
|
|
color: FlutterTheme
|
|
.of(context)
|
|
.secondaryBackground,
|
|
shape:
|
|
BoxShape.circle,
|
|
border: Border.all(
|
|
color: Colors.black,
|
|
),
|
|
),
|
|
child: Stack(
|
|
children: [
|
|
ClipRRect(
|
|
borderRadius:
|
|
BorderRadius
|
|
.circular(
|
|
8.0),
|
|
child: SvgPicture
|
|
.asset(
|
|
'assets/images/Group_2640.svg',
|
|
width: 300.0,
|
|
height: 200.0,
|
|
fit: BoxFit
|
|
.scaleDown,
|
|
),
|
|
),
|
|
Align(
|
|
alignment:
|
|
AlignmentDirectional(
|
|
1.09,
|
|
1.07),
|
|
child: Container(
|
|
width: 41.0,
|
|
height: 41.0,
|
|
decoration:
|
|
BoxDecoration(
|
|
color: Color(
|
|
0xFFF3CF5D),
|
|
shape: BoxShape
|
|
.circle,
|
|
),
|
|
child: Icon(
|
|
Icons
|
|
.camera_alt_outlined,
|
|
color: FlutterTheme.of(
|
|
context)
|
|
.secondaryText,
|
|
size: 24.0,
|
|
),
|
|
),
|
|
),
|
|
],
|
|
),
|
|
),
|
|
],
|
|
),
|
|
),
|
|
Padding(
|
|
padding: EdgeInsetsDirectional
|
|
.fromSTEB(
|
|
0.0, 12.0, 0.0, 5.0),
|
|
child: Row(
|
|
mainAxisSize:
|
|
MainAxisSize.max,
|
|
children: [
|
|
Padding(
|
|
padding:
|
|
EdgeInsetsDirectional
|
|
.fromSTEB(
|
|
16.0,
|
|
0.0,
|
|
0.0,
|
|
0.0),
|
|
child: Text(
|
|
FFLocalizations.of(
|
|
context)
|
|
.getText(
|
|
'c2zc0eun' /* Company */,
|
|
),
|
|
style: FlutterTheme
|
|
.of(context)
|
|
.bodyMedium
|
|
.override(
|
|
fontFamily:
|
|
'Roboto',
|
|
fontSize: 16.0,
|
|
),
|
|
),
|
|
),
|
|
],
|
|
),
|
|
),
|
|
Row(
|
|
mainAxisSize:
|
|
MainAxisSize.max,
|
|
children: [
|
|
Expanded(
|
|
child: Padding(
|
|
padding:
|
|
EdgeInsetsDirectional
|
|
.fromSTEB(
|
|
8.0,
|
|
0.0,
|
|
8.0,
|
|
0.0),
|
|
child: Container(
|
|
width: 326.0,
|
|
child: TextFormField(
|
|
controller: _model
|
|
.textController1,
|
|
focusNode: _model
|
|
.textFieldFocusNode1,
|
|
obscureText: false,
|
|
decoration:
|
|
InputDecoration(
|
|
labelStyle:
|
|
FlutterTheme.of(
|
|
context)
|
|
.labelMedium,
|
|
hintStyle:
|
|
FlutterTheme.of(
|
|
context)
|
|
.labelMedium,
|
|
enabledBorder:
|
|
OutlineInputBorder(
|
|
borderSide:
|
|
BorderSide(
|
|
color: FlutterTheme.of(
|
|
context)
|
|
.alternate,
|
|
width: 2.0,
|
|
),
|
|
borderRadius:
|
|
BorderRadius
|
|
.circular(
|
|
23.8),
|
|
),
|
|
focusedBorder:
|
|
OutlineInputBorder(
|
|
borderSide:
|
|
BorderSide(
|
|
color: FlutterTheme.of(
|
|
context)
|
|
.primary,
|
|
width: 2.0,
|
|
),
|
|
borderRadius:
|
|
BorderRadius
|
|
.circular(
|
|
23.8),
|
|
),
|
|
errorBorder:
|
|
OutlineInputBorder(
|
|
borderSide:
|
|
BorderSide(
|
|
color: FlutterTheme.of(
|
|
context)
|
|
.error,
|
|
width: 2.0,
|
|
),
|
|
borderRadius:
|
|
BorderRadius
|
|
.circular(
|
|
23.8),
|
|
),
|
|
focusedErrorBorder:
|
|
OutlineInputBorder(
|
|
borderSide:
|
|
BorderSide(
|
|
color: FlutterTheme.of(
|
|
context)
|
|
.error,
|
|
width: 2.0,
|
|
),
|
|
borderRadius:
|
|
BorderRadius
|
|
.circular(
|
|
23.8),
|
|
),
|
|
filled: true,
|
|
fillColor: Color(
|
|
0xFF6D7581),
|
|
),
|
|
style: FlutterTheme
|
|
.of(context)
|
|
.bodyMedium,
|
|
validator: _model
|
|
.textController1Validator
|
|
.asValidator(
|
|
context),
|
|
),
|
|
),
|
|
),
|
|
),
|
|
],
|
|
),
|
|
Padding(
|
|
padding: EdgeInsetsDirectional
|
|
.fromSTEB(
|
|
0.0, 12.0, 0.0, 5.0),
|
|
child: Row(
|
|
mainAxisSize:
|
|
MainAxisSize.max,
|
|
children: [
|
|
Padding(
|
|
padding:
|
|
EdgeInsetsDirectional
|
|
.fromSTEB(
|
|
16.0,
|
|
0.0,
|
|
0.0,
|
|
0.0),
|
|
child: Text(
|
|
FFLocalizations.of(
|
|
context)
|
|
.getText(
|
|
'q0z6g1k5' /* Director Alias Name */,
|
|
),
|
|
style: FlutterTheme
|
|
.of(context)
|
|
.bodyMedium
|
|
.override(
|
|
fontFamily:
|
|
'Roboto',
|
|
fontSize: 16.0,
|
|
),
|
|
),
|
|
),
|
|
],
|
|
),
|
|
),
|
|
Row(
|
|
mainAxisSize:
|
|
MainAxisSize.max,
|
|
children: [
|
|
Expanded(
|
|
child: Padding(
|
|
padding:
|
|
EdgeInsetsDirectional
|
|
.fromSTEB(
|
|
8.0,
|
|
0.0,
|
|
8.0,
|
|
0.0),
|
|
child: Container(
|
|
width: 326.0,
|
|
child: TextFormField(
|
|
controller: _model
|
|
.textController2,
|
|
focusNode: _model
|
|
.textFieldFocusNode2,
|
|
obscureText: false,
|
|
decoration:
|
|
InputDecoration(
|
|
labelStyle:
|
|
FlutterTheme.of(
|
|
context)
|
|
.labelMedium,
|
|
hintStyle:
|
|
FlutterTheme.of(
|
|
context)
|
|
.labelMedium,
|
|
enabledBorder:
|
|
OutlineInputBorder(
|
|
borderSide:
|
|
BorderSide(
|
|
color: FlutterTheme.of(
|
|
context)
|
|
.alternate,
|
|
width: 2.0,
|
|
),
|
|
borderRadius:
|
|
BorderRadius
|
|
.circular(
|
|
23.8),
|
|
),
|
|
focusedBorder:
|
|
OutlineInputBorder(
|
|
borderSide:
|
|
BorderSide(
|
|
color: FlutterTheme.of(
|
|
context)
|
|
.primary,
|
|
width: 2.0,
|
|
),
|
|
borderRadius:
|
|
BorderRadius
|
|
.circular(
|
|
23.8),
|
|
),
|
|
errorBorder:
|
|
OutlineInputBorder(
|
|
borderSide:
|
|
BorderSide(
|
|
color: FlutterTheme.of(
|
|
context)
|
|
.error,
|
|
width: 2.0,
|
|
),
|
|
borderRadius:
|
|
BorderRadius
|
|
.circular(
|
|
23.8),
|
|
),
|
|
focusedErrorBorder:
|
|
OutlineInputBorder(
|
|
borderSide:
|
|
BorderSide(
|
|
color: FlutterTheme.of(
|
|
context)
|
|
.error,
|
|
width: 2.0,
|
|
),
|
|
borderRadius:
|
|
BorderRadius
|
|
.circular(
|
|
23.8),
|
|
),
|
|
),
|
|
style: FlutterTheme
|
|
.of(context)
|
|
.bodyMedium,
|
|
validator: _model
|
|
.textController2Validator
|
|
.asValidator(
|
|
context),
|
|
),
|
|
),
|
|
),
|
|
),
|
|
],
|
|
),
|
|
Padding(
|
|
padding: EdgeInsetsDirectional
|
|
.fromSTEB(
|
|
0.0, 12.0, 0.0, 5.0),
|
|
child: Row(
|
|
mainAxisSize:
|
|
MainAxisSize.max,
|
|
children: [
|
|
Padding(
|
|
padding:
|
|
EdgeInsetsDirectional
|
|
.fromSTEB(
|
|
16.0,
|
|
0.0,
|
|
0.0,
|
|
0.0),
|
|
child: Text(
|
|
FFLocalizations.of(
|
|
context)
|
|
.getText(
|
|
'rr0retbm' /* Email */,
|
|
),
|
|
style: FlutterTheme
|
|
.of(context)
|
|
.bodyMedium
|
|
.override(
|
|
fontFamily:
|
|
'Roboto',
|
|
fontSize: 16.0,
|
|
),
|
|
),
|
|
),
|
|
],
|
|
),
|
|
),
|
|
Row(
|
|
mainAxisSize:
|
|
MainAxisSize.max,
|
|
children: [
|
|
Expanded(
|
|
child: Padding(
|
|
padding:
|
|
EdgeInsetsDirectional
|
|
.fromSTEB(
|
|
8.0,
|
|
0.0,
|
|
8.0,
|
|
0.0),
|
|
child: Container(
|
|
width: 326.0,
|
|
child: TextFormField(
|
|
controller: _model
|
|
.textController3,
|
|
focusNode: _model
|
|
.textFieldFocusNode3,
|
|
obscureText: false,
|
|
decoration:
|
|
InputDecoration(
|
|
labelStyle:
|
|
FlutterTheme.of(
|
|
context)
|
|
.labelMedium,
|
|
hintStyle:
|
|
FlutterTheme.of(
|
|
context)
|
|
.labelMedium,
|
|
enabledBorder:
|
|
OutlineInputBorder(
|
|
borderSide:
|
|
BorderSide(
|
|
color: FlutterTheme.of(
|
|
context)
|
|
.alternate,
|
|
width: 2.0,
|
|
),
|
|
borderRadius:
|
|
BorderRadius
|
|
.circular(
|
|
23.8),
|
|
),
|
|
focusedBorder:
|
|
OutlineInputBorder(
|
|
borderSide:
|
|
BorderSide(
|
|
color: FlutterTheme.of(
|
|
context)
|
|
.primary,
|
|
width: 2.0,
|
|
),
|
|
borderRadius:
|
|
BorderRadius
|
|
.circular(
|
|
23.8),
|
|
),
|
|
errorBorder:
|
|
OutlineInputBorder(
|
|
borderSide:
|
|
BorderSide(
|
|
color: FlutterTheme.of(
|
|
context)
|
|
.error,
|
|
width: 2.0,
|
|
),
|
|
borderRadius:
|
|
BorderRadius
|
|
.circular(
|
|
23.8),
|
|
),
|
|
focusedErrorBorder:
|
|
OutlineInputBorder(
|
|
borderSide:
|
|
BorderSide(
|
|
color: FlutterTheme.of(
|
|
context)
|
|
.error,
|
|
width: 2.0,
|
|
),
|
|
borderRadius:
|
|
BorderRadius
|
|
.circular(
|
|
23.8),
|
|
),
|
|
),
|
|
style: FlutterTheme
|
|
.of(context)
|
|
.bodyMedium,
|
|
validator: _model
|
|
.textController3Validator
|
|
.asValidator(
|
|
context),
|
|
),
|
|
),
|
|
),
|
|
),
|
|
],
|
|
),
|
|
Padding(
|
|
padding: EdgeInsetsDirectional
|
|
.fromSTEB(
|
|
0.0, 20.0, 0.0, 0.0),
|
|
child: FFButtonWidget(
|
|
onPressed: () {
|
|
print(
|
|
'Button pressed ...');
|
|
},
|
|
text: FFLocalizations.of(
|
|
context)
|
|
.getText(
|
|
'srjc9it7' /* Submit */,
|
|
),
|
|
options: FFButtonOptions(
|
|
width: 339.0,
|
|
height: 50.0,
|
|
padding:
|
|
EdgeInsetsDirectional
|
|
.fromSTEB(
|
|
24.0,
|
|
0.0,
|
|
24.0,
|
|
0.0),
|
|
iconPadding:
|
|
EdgeInsetsDirectional
|
|
.fromSTEB(
|
|
0.0,
|
|
0.0,
|
|
0.0,
|
|
0.0),
|
|
color: Color(0xFF009B9A),
|
|
textStyle:
|
|
FlutterTheme.of(
|
|
context)
|
|
.titleSmall
|
|
.override(
|
|
fontFamily:
|
|
'Readex Pro',
|
|
color: Colors
|
|
.white,
|
|
),
|
|
elevation: 3.0,
|
|
borderSide: BorderSide(
|
|
color:
|
|
Colors.transparent,
|
|
width: 1.0,
|
|
),
|
|
borderRadius:
|
|
BorderRadius.circular(
|
|
40.0),
|
|
),
|
|
),
|
|
),
|
|
],
|
|
),
|
|
),
|
|
],
|
|
),
|
|
],
|
|
),
|
|
),
|
|
),
|
|
Padding(
|
|
padding: EdgeInsetsDirectional.fromSTEB(
|
|
0.0, 0.0, 0.0, 100.0),
|
|
child: SingleChildScrollView(
|
|
child: Column(
|
|
mainAxisSize: MainAxisSize.max,
|
|
children: [
|
|
Stack(
|
|
children: [
|
|
if (_model.checkPermission20 == true)
|
|
Container(
|
|
width: 358.0,
|
|
height: 500.0,
|
|
decoration: BoxDecoration(
|
|
color:
|
|
FlutterTheme.of(context)
|
|
.secondaryBackground,
|
|
),
|
|
child: SingleChildScrollView(
|
|
child: Column(
|
|
mainAxisSize:
|
|
MainAxisSize.max,
|
|
children: [
|
|
Row(
|
|
mainAxisSize:
|
|
MainAxisSize.max,
|
|
children: [
|
|
Expanded(
|
|
child: Padding(
|
|
padding:
|
|
EdgeInsetsDirectional
|
|
.fromSTEB(
|
|
0.0,
|
|
24.0,
|
|
0.0,
|
|
0.0),
|
|
child: Text(
|
|
FFLocalizations.of(
|
|
context)
|
|
.getText(
|
|
'k7lxbh16' /* Bookkeeping Service subscripti... */,
|
|
),
|
|
textAlign:
|
|
TextAlign
|
|
.center,
|
|
style: FlutterTheme
|
|
.of(context)
|
|
.bodyMedium
|
|
.override(
|
|
fontFamily:
|
|
'Readex Pro',
|
|
fontSize:
|
|
24.0,
|
|
),
|
|
),
|
|
),
|
|
),
|
|
],
|
|
),
|
|
Switch.adaptive(
|
|
value: _model
|
|
.switchValue ??= true,
|
|
onChanged:
|
|
(newValue) async {
|
|
setState(() =>
|
|
_model.switchValue =
|
|
newValue!);
|
|
},
|
|
activeColor:
|
|
FlutterTheme.of(
|
|
context)
|
|
.primary,
|
|
activeTrackColor:
|
|
FlutterTheme.of(
|
|
context)
|
|
.accent1,
|
|
inactiveTrackColor:
|
|
FlutterTheme.of(
|
|
context)
|
|
.alternate,
|
|
inactiveThumbColor:
|
|
FlutterTheme.of(
|
|
context)
|
|
.secondaryText,
|
|
),
|
|
FFButtonWidget(
|
|
onPressed: () {
|
|
print(
|
|
'Button pressed ...');
|
|
},
|
|
text: FFLocalizations.of(
|
|
context)
|
|
.getText(
|
|
'eb94egsv' /* Download Invoice */,
|
|
),
|
|
icon: Icon(
|
|
Icons
|
|
.file_download_outlined,
|
|
size: 15.0,
|
|
),
|
|
options: FFButtonOptions(
|
|
width: 339.0,
|
|
height: 50.0,
|
|
padding:
|
|
EdgeInsetsDirectional
|
|
.fromSTEB(
|
|
24.0,
|
|
0.0,
|
|
24.0,
|
|
0.0),
|
|
iconPadding:
|
|
EdgeInsetsDirectional
|
|
.fromSTEB(
|
|
0.0,
|
|
0.0,
|
|
0.0,
|
|
0.0),
|
|
color:
|
|
Color(0xFF009B9A),
|
|
textStyle:
|
|
FlutterTheme.of(
|
|
context)
|
|
.titleSmall
|
|
.override(
|
|
fontFamily:
|
|
'Readex Pro',
|
|
color: Colors
|
|
.white,
|
|
),
|
|
elevation: 3.0,
|
|
borderSide: BorderSide(
|
|
color: Colors
|
|
.transparent,
|
|
width: 1.0,
|
|
),
|
|
borderRadius:
|
|
BorderRadius
|
|
.circular(40.0),
|
|
),
|
|
),
|
|
Padding(
|
|
padding:
|
|
EdgeInsetsDirectional
|
|
.fromSTEB(
|
|
0.0,
|
|
10.0,
|
|
0.0,
|
|
0.0),
|
|
child:
|
|
SingleChildScrollView(
|
|
scrollDirection:
|
|
Axis.horizontal,
|
|
child: Row(
|
|
mainAxisSize:
|
|
MainAxisSize.max,
|
|
mainAxisAlignment:
|
|
MainAxisAlignment
|
|
.center,
|
|
children: [
|
|
Align(
|
|
alignment:
|
|
AlignmentDirectional(
|
|
0.0, 0.0),
|
|
child: Padding(
|
|
padding: EdgeInsetsDirectional
|
|
.fromSTEB(
|
|
10.0,
|
|
0.0,
|
|
15.0,
|
|
0.0),
|
|
child: Stack(
|
|
children: [
|
|
Align(
|
|
alignment:
|
|
AlignmentDirectional(
|
|
0.0,
|
|
0.0),
|
|
child:
|
|
Container(
|
|
width:
|
|
328.0,
|
|
height:
|
|
700.0,
|
|
decoration:
|
|
BoxDecoration(
|
|
color:
|
|
Color(0xFFF4F7FA),
|
|
borderRadius:
|
|
BorderRadius.circular(0.0),
|
|
),
|
|
child:
|
|
Column(
|
|
mainAxisSize:
|
|
MainAxisSize.max,
|
|
mainAxisAlignment:
|
|
MainAxisAlignment.start,
|
|
children: [
|
|
Row(
|
|
mainAxisSize: MainAxisSize.max,
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
children: [
|
|
Align(
|
|
alignment: AlignmentDirectional(0.0, 0.0),
|
|
child: Container(
|
|
width: 328.0,
|
|
height: 262.0,
|
|
decoration: BoxDecoration(
|
|
color: Color(0xFFF3CF5D),
|
|
),
|
|
child: Column(
|
|
mainAxisSize: MainAxisSize.max,
|
|
children: [
|
|
Padding(
|
|
padding: EdgeInsetsDirectional.fromSTEB(0.0, 40.59, 0.0, 0.0),
|
|
child: Row(
|
|
mainAxisSize: MainAxisSize.max,
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
children: [
|
|
Align(
|
|
alignment: AlignmentDirectional(0.0, 0.0),
|
|
child: Text(
|
|
FFLocalizations.of(context).getText(
|
|
'y0pjaut3' /* Demi */,
|
|
),
|
|
style: FlutterTheme.of(context).bodyMedium.override(
|
|
fontFamily: 'Readex Pro',
|
|
fontSize: 52.0,
|
|
),
|
|
),
|
|
),
|
|
],
|
|
),
|
|
),
|
|
Padding(
|
|
padding: EdgeInsetsDirectional.fromSTEB(0.0, 18.0, 0.0, 0.0),
|
|
child: Row(
|
|
mainAxisSize: MainAxisSize.max,
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
children: [
|
|
Text(
|
|
FFLocalizations.of(context).getText(
|
|
'eqmboqkd' /* Monthly revenue under
|
|
HK$50K */
|
|
,
|
|
),
|
|
textAlign: TextAlign.center,
|
|
style: FlutterTheme.of(context).bodyMedium.override(
|
|
fontFamily: 'Readex Pro',
|
|
fontSize: 26.0,
|
|
),
|
|
),
|
|
],
|
|
),
|
|
),
|
|
],
|
|
),
|
|
),
|
|
),
|
|
],
|
|
),
|
|
Column(
|
|
mainAxisSize: MainAxisSize.max,
|
|
children: [
|
|
Padding(
|
|
padding: EdgeInsetsDirectional.fromSTEB(10.0, 97.43, 0.0, 0.0),
|
|
child: Row(
|
|
mainAxisSize: MainAxisSize.max,
|
|
children: [
|
|
Text(
|
|
FFLocalizations.of(context).getText(
|
|
'ltlnfmga' /* Annual Support */,
|
|
),
|
|
style: FlutterTheme.of(context).bodyMedium.override(
|
|
fontFamily: 'Readex Pro',
|
|
fontSize: 24.0,
|
|
),
|
|
),
|
|
],
|
|
),
|
|
),
|
|
],
|
|
),
|
|
Padding(
|
|
padding: EdgeInsetsDirectional.fromSTEB(10.0, 16.0, 0.0, 0.0),
|
|
child: Row(
|
|
mainAxisSize: MainAxisSize.max,
|
|
children: [
|
|
Icon(
|
|
Icons.check,
|
|
color: Color(0xFFF3CF5D),
|
|
size: 18.0,
|
|
),
|
|
Padding(
|
|
padding: EdgeInsetsDirectional.fromSTEB(5.0, 0.0, 0.0, 0.0),
|
|
child: Text(
|
|
FFLocalizations.of(context).getText(
|
|
'lxumaxh1' /* Annual review by Accountant */,
|
|
),
|
|
style: FlutterTheme.of(context).bodyMedium,
|
|
),
|
|
),
|
|
],
|
|
),
|
|
),
|
|
Padding(
|
|
padding: EdgeInsetsDirectional.fromSTEB(10.0, 16.0, 0.0, 0.0),
|
|
child: Row(
|
|
mainAxisSize: MainAxisSize.max,
|
|
children: [
|
|
Text(
|
|
FFLocalizations.of(context).getText(
|
|
'0ptvcn1f' /* Government &Tax Filings */,
|
|
),
|
|
style: FlutterTheme.of(context).bodyMedium.override(
|
|
fontFamily: 'Readex Pro',
|
|
fontSize: 24.0,
|
|
),
|
|
),
|
|
],
|
|
),
|
|
),
|
|
Padding(
|
|
padding: EdgeInsetsDirectional.fromSTEB(10.0, 16.0, 0.0, 0.0),
|
|
child: Row(
|
|
mainAxisSize: MainAxisSize.max,
|
|
children: [
|
|
Icon(
|
|
Icons.check,
|
|
color: Color(0xFFF3CF5D),
|
|
size: 18.0,
|
|
),
|
|
Padding(
|
|
padding: EdgeInsetsDirectional.fromSTEB(5.0, 0.0, 0.0, 0.0),
|
|
child: Text(
|
|
FFLocalizations.of(context).getText(
|
|
'apastzxi' /* Unaudited Financial Statements */,
|
|
),
|
|
style: FlutterTheme.of(context).bodyMedium,
|
|
),
|
|
),
|
|
],
|
|
),
|
|
),
|
|
Padding(
|
|
padding: EdgeInsetsDirectional.fromSTEB(0.0, 24.0, 0.0, 0.0),
|
|
child: Container(
|
|
width: 246.0,
|
|
height: 60.0,
|
|
decoration: BoxDecoration(
|
|
color: Color(0xFFF3CF5D),
|
|
borderRadius: BorderRadius.circular(32.5),
|
|
),
|
|
child: Align(
|
|
alignment: AlignmentDirectional(0.0, 0.0),
|
|
child: Row(
|
|
mainAxisSize: MainAxisSize.max,
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
children: [
|
|
Flexible(
|
|
child: Padding(
|
|
padding: EdgeInsetsDirectional.fromSTEB(5.0, 0.0, 0.0, 0.0),
|
|
child: Text(
|
|
FFLocalizations.of(context).getText(
|
|
'sa2yelxi' /* Upgrade Now */,
|
|
),
|
|
style: FlutterTheme.of(context).bodyMedium.override(
|
|
fontFamily: 'Readex Pro',
|
|
fontSize: 24.0,
|
|
fontWeight: FontWeight.w500,
|
|
),
|
|
),
|
|
),
|
|
),
|
|
],
|
|
),
|
|
),
|
|
),
|
|
),
|
|
],
|
|
),
|
|
),
|
|
),
|
|
Align(
|
|
alignment:
|
|
AlignmentDirectional(
|
|
0.0,
|
|
0.0),
|
|
child:
|
|
Padding(
|
|
padding: EdgeInsetsDirectional.fromSTEB(
|
|
40.0,
|
|
230.0,
|
|
0.0,
|
|
0.0),
|
|
child:
|
|
FFButtonWidget(
|
|
onPressed:
|
|
() {
|
|
print('Button pressed ...');
|
|
},
|
|
text:
|
|
FFLocalizations.of(context).getText(
|
|
'63fqxys9' /* HK$14,000 */,
|
|
),
|
|
options:
|
|
FFButtonOptions(
|
|
width:
|
|
255.0,
|
|
height:
|
|
85.0,
|
|
padding:
|
|
EdgeInsets.all(0.0),
|
|
iconPadding: EdgeInsetsDirectional.fromSTEB(
|
|
0.0,
|
|
0.0,
|
|
0.0,
|
|
0.0),
|
|
color:
|
|
Color(0xFF009B9A),
|
|
textStyle: FlutterTheme.of(context).titleSmall.override(
|
|
fontFamily: 'Roboto',
|
|
color: Colors.white,
|
|
fontSize: 30.0,
|
|
),
|
|
elevation:
|
|
3.0,
|
|
borderSide:
|
|
BorderSide(
|
|
color: Color(0xFFD6DEE9),
|
|
width: 10.0,
|
|
),
|
|
borderRadius:
|
|
BorderRadius.circular(48.7),
|
|
),
|
|
),
|
|
),
|
|
),
|
|
],
|
|
),
|
|
),
|
|
),
|
|
Align(
|
|
alignment:
|
|
AlignmentDirectional(
|
|
0.0, 0.0),
|
|
child: Padding(
|
|
padding:
|
|
EdgeInsetsDirectional
|
|
.fromSTEB(
|
|
0.0,
|
|
0.0,
|
|
30.0,
|
|
0.0),
|
|
child: Stack(
|
|
children: [
|
|
Align(
|
|
alignment:
|
|
AlignmentDirectional(
|
|
0.0,
|
|
0.0),
|
|
child:
|
|
Container(
|
|
width:
|
|
328.0,
|
|
height:
|
|
700.0,
|
|
decoration:
|
|
BoxDecoration(
|
|
color:
|
|
Color(0xFFF4F7FA),
|
|
borderRadius:
|
|
BorderRadius.circular(0.0),
|
|
),
|
|
child:
|
|
Column(
|
|
mainAxisSize:
|
|
MainAxisSize.max,
|
|
mainAxisAlignment:
|
|
MainAxisAlignment.start,
|
|
children: [
|
|
Row(
|
|
mainAxisSize: MainAxisSize.max,
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
children: [
|
|
Align(
|
|
alignment: AlignmentDirectional(0.0, 0.0),
|
|
child: Container(
|
|
width: 328.0,
|
|
height: 262.0,
|
|
decoration: BoxDecoration(
|
|
color: Color(0xFFF3CF5D),
|
|
),
|
|
child: Column(
|
|
mainAxisSize: MainAxisSize.max,
|
|
children: [
|
|
Padding(
|
|
padding: EdgeInsetsDirectional.fromSTEB(0.0, 40.59, 0.0, 0.0),
|
|
child: Row(
|
|
mainAxisSize: MainAxisSize.max,
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
children: [
|
|
Align(
|
|
alignment: AlignmentDirectional(0.0, 0.0),
|
|
child: Text(
|
|
FFLocalizations.of(context).getText(
|
|
'or12jkh7' /* Short */,
|
|
),
|
|
style: FlutterTheme.of(context).bodyMedium.override(
|
|
fontFamily: 'Readex Pro',
|
|
fontSize: 52.0,
|
|
),
|
|
),
|
|
),
|
|
],
|
|
),
|
|
),
|
|
Padding(
|
|
padding: EdgeInsetsDirectional.fromSTEB(0.0, 18.0, 0.0, 0.0),
|
|
child: Row(
|
|
mainAxisSize: MainAxisSize.max,
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
children: [
|
|
Text(
|
|
FFLocalizations.of(context).getText(
|
|
'136wtdb3' /* Monthly revenue under
|
|
HK$100K... */
|
|
,
|
|
),
|
|
textAlign: TextAlign.center,
|
|
style: FlutterTheme.of(context).bodyMedium.override(
|
|
fontFamily: 'Readex Pro',
|
|
fontSize: 26.0,
|
|
),
|
|
),
|
|
],
|
|
),
|
|
),
|
|
],
|
|
),
|
|
),
|
|
),
|
|
],
|
|
),
|
|
Column(
|
|
mainAxisSize: MainAxisSize.max,
|
|
children: [
|
|
Padding(
|
|
padding: EdgeInsetsDirectional.fromSTEB(10.0, 97.43, 0.0, 0.0),
|
|
child: Row(
|
|
mainAxisSize: MainAxisSize.max,
|
|
children: [
|
|
Text(
|
|
FFLocalizations.of(context).getText(
|
|
'4b8hxduc' /* Annual Support */,
|
|
),
|
|
style: FlutterTheme.of(context).bodyMedium.override(
|
|
fontFamily: 'Readex Pro',
|
|
fontSize: 24.0,
|
|
),
|
|
),
|
|
],
|
|
),
|
|
),
|
|
],
|
|
),
|
|
Padding(
|
|
padding: EdgeInsetsDirectional.fromSTEB(10.0, 16.0, 0.0, 0.0),
|
|
child: Row(
|
|
mainAxisSize: MainAxisSize.max,
|
|
children: [
|
|
Icon(
|
|
Icons.check,
|
|
color: Color(0xFFF3CF5D),
|
|
size: 18.0,
|
|
),
|
|
Padding(
|
|
padding: EdgeInsetsDirectional.fromSTEB(5.0, 0.0, 0.0, 0.0),
|
|
child: Text(
|
|
FFLocalizations.of(context).getText(
|
|
'oiudstto' /* Annual review by Accountant */,
|
|
),
|
|
style: FlutterTheme.of(context).bodyMedium,
|
|
),
|
|
),
|
|
],
|
|
),
|
|
),
|
|
Padding(
|
|
padding: EdgeInsetsDirectional.fromSTEB(10.0, 16.0, 0.0, 0.0),
|
|
child: Row(
|
|
mainAxisSize: MainAxisSize.max,
|
|
children: [
|
|
Text(
|
|
FFLocalizations.of(context).getText(
|
|
'7za246ul' /* Government &Tax Filings */,
|
|
),
|
|
style: FlutterTheme.of(context).bodyMedium.override(
|
|
fontFamily: 'Readex Pro',
|
|
fontSize: 24.0,
|
|
),
|
|
),
|
|
],
|
|
),
|
|
),
|
|
Padding(
|
|
padding: EdgeInsetsDirectional.fromSTEB(10.0, 16.0, 0.0, 0.0),
|
|
child: Row(
|
|
mainAxisSize: MainAxisSize.max,
|
|
children: [
|
|
Icon(
|
|
Icons.check,
|
|
color: Color(0xFFF3CF5D),
|
|
size: 18.0,
|
|
),
|
|
Padding(
|
|
padding: EdgeInsetsDirectional.fromSTEB(5.0, 0.0, 0.0, 0.0),
|
|
child: Text(
|
|
FFLocalizations.of(context).getText(
|
|
'8uowqqsi' /* Unaudited Financial Statements */,
|
|
),
|
|
style: FlutterTheme.of(context).bodyMedium,
|
|
),
|
|
),
|
|
],
|
|
),
|
|
),
|
|
Padding(
|
|
padding: EdgeInsetsDirectional.fromSTEB(0.0, 24.0, 0.0, 0.0),
|
|
child: Container(
|
|
width: 246.0,
|
|
height: 60.0,
|
|
decoration: BoxDecoration(
|
|
color: Color(0xFFF3CF5D),
|
|
borderRadius: BorderRadius.circular(32.5),
|
|
border: Border.all(
|
|
color: Color(0xFFF3CF5D),
|
|
width: 5.0,
|
|
),
|
|
),
|
|
child: Align(
|
|
alignment: AlignmentDirectional(0.0, 0.0),
|
|
child: Row(
|
|
mainAxisSize: MainAxisSize.max,
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
children: [
|
|
Flexible(
|
|
child: Padding(
|
|
padding: EdgeInsetsDirectional.fromSTEB(5.0, 0.0, 0.0, 0.0),
|
|
child: Text(
|
|
FFLocalizations.of(context).getText(
|
|
'nytubig5' /* Upgrade Now */,
|
|
),
|
|
style: FlutterTheme.of(context).bodyMedium.override(
|
|
fontFamily: 'Readex Pro',
|
|
fontSize: 24.0,
|
|
fontWeight: FontWeight.w500,
|
|
),
|
|
),
|
|
),
|
|
),
|
|
],
|
|
),
|
|
),
|
|
),
|
|
),
|
|
],
|
|
),
|
|
),
|
|
),
|
|
Align(
|
|
alignment:
|
|
AlignmentDirectional(
|
|
0.0,
|
|
0.0),
|
|
child:
|
|
Padding(
|
|
padding: EdgeInsetsDirectional.fromSTEB(
|
|
40.0,
|
|
230.0,
|
|
0.0,
|
|
0.0),
|
|
child:
|
|
FFButtonWidget(
|
|
onPressed:
|
|
() {
|
|
print('Button pressed ...');
|
|
},
|
|
text:
|
|
FFLocalizations.of(context).getText(
|
|
'ke9cuucz' /* HK$14,000 */,
|
|
),
|
|
options:
|
|
FFButtonOptions(
|
|
width:
|
|
255.0,
|
|
height:
|
|
85.0,
|
|
padding:
|
|
EdgeInsets.all(0.0),
|
|
iconPadding: EdgeInsetsDirectional.fromSTEB(
|
|
0.0,
|
|
0.0,
|
|
0.0,
|
|
0.0),
|
|
color:
|
|
Color(0xFF009B9A),
|
|
textStyle: FlutterTheme.of(context).titleSmall.override(
|
|
fontFamily: 'Roboto',
|
|
color: Colors.white,
|
|
fontSize: 30.0,
|
|
),
|
|
elevation:
|
|
3.0,
|
|
borderSide:
|
|
BorderSide(
|
|
color: Color(0xFFD6DEE9),
|
|
width: 10.0,
|
|
),
|
|
borderRadius:
|
|
BorderRadius.circular(48.7),
|
|
),
|
|
),
|
|
),
|
|
),
|
|
],
|
|
),
|
|
),
|
|
),
|
|
],
|
|
),
|
|
),
|
|
),
|
|
],
|
|
),
|
|
),
|
|
),
|
|
if (_model.checkPermission20 == false)
|
|
Container(
|
|
width: 358.0,
|
|
height: 500.0,
|
|
decoration: BoxDecoration(
|
|
color:
|
|
FlutterTheme.of(context)
|
|
.secondaryBackground,
|
|
),
|
|
child: wrapWithModel(
|
|
model: _model.noPermissionModel,
|
|
updateCallback: () =>
|
|
setState(() {}),
|
|
child: NoPermissionWidget(),
|
|
),
|
|
),
|
|
],
|
|
),
|
|
],
|
|
),
|
|
),
|
|
),
|
|
],
|
|
),
|
|
),
|
|
],
|
|
),
|
|
),
|
|
],
|
|
),
|
|
Align(
|
|
alignment: AlignmentDirectional(0.0, 1.0),
|
|
child: wrapWithModel(
|
|
model: _model.navBar1Model,
|
|
updateCallback: () => setState(() {}),
|
|
child: NavBar1Widget(),
|
|
),
|
|
),
|
|
Align(
|
|
alignment: AlignmentDirectional(0.0, -1.0),
|
|
child: wrapWithModel(
|
|
model: _model.appbarModel,
|
|
updateCallback: () => setState(() {}),
|
|
child: AppbarWidget(),
|
|
),
|
|
),
|
|
Align(
|
|
alignment: AlignmentDirectional(1.07, -0.97),
|
|
child: Padding(
|
|
padding:
|
|
EdgeInsetsDirectional.fromSTEB(0.0, 550.0, 30.0, 0.0),
|
|
child: InkWell(
|
|
splashColor: Colors.transparent,
|
|
focusColor: Colors.transparent,
|
|
hoverColor: Colors.transparent,
|
|
highlightColor: Colors.transparent,
|
|
onTap: () async {
|
|
context.pushNamed('chatbox');
|
|
},
|
|
child: Container(
|
|
width: 71.0,
|
|
height: 71.0,
|
|
decoration: BoxDecoration(
|
|
gradient: LinearGradient(
|
|
colors: [Color(0xFFE7E63B), Color(0xFFC6E6D7)],
|
|
stops: [0.0, 1.0],
|
|
begin: AlignmentDirectional(-1.0, 0.0),
|
|
end: AlignmentDirectional(1.0, 0),
|
|
),
|
|
shape: BoxShape.circle,
|
|
),
|
|
child: ClipRRect(
|
|
borderRadius: BorderRadius.circular(8.0),
|
|
child: SvgPicture.asset(
|
|
'assets/images/message-2.svg',
|
|
width: 100.0,
|
|
height: 100.0,
|
|
fit: BoxFit.none,
|
|
),
|
|
),
|
|
),
|
|
),
|
|
),
|
|
),
|
|
],
|
|
),
|
|
),
|
|
),
|
|
);
|
|
}
|
|
}
|