|
|
|
@ -7,6 +7,7 @@ import 'package:diplomaticquarterapp/routes.dart';
|
|
|
|
import 'package:diplomaticquarterapp/uitl/translations_delegate_base.dart';
|
|
|
|
import 'package:diplomaticquarterapp/uitl/translations_delegate_base.dart';
|
|
|
|
import 'package:diplomaticquarterapp/widgets/buttons/secondary_button.dart';
|
|
|
|
import 'package:diplomaticquarterapp/widgets/buttons/secondary_button.dart';
|
|
|
|
import 'package:diplomaticquarterapp/widgets/data_display/text.dart';
|
|
|
|
import 'package:diplomaticquarterapp/widgets/data_display/text.dart';
|
|
|
|
|
|
|
|
import 'package:diplomaticquarterapp/widgets/others/app_scaffold_widget.dart';
|
|
|
|
import 'package:diplomaticquarterapp/widgets/transitions/fade_page.dart';
|
|
|
|
import 'package:diplomaticquarterapp/widgets/transitions/fade_page.dart';
|
|
|
|
import 'package:flutter/cupertino.dart';
|
|
|
|
import 'package:flutter/cupertino.dart';
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
@ -33,7 +34,93 @@ class _NotAutPageState extends State<NotAutPage> {
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
ProjectViewModel projectViewModel = Provider.of(context);
|
|
|
|
ProjectViewModel projectViewModel = Provider.of(context);
|
|
|
|
|
|
|
|
|
|
|
|
return Scaffold(
|
|
|
|
return AppScaffold(
|
|
|
|
|
|
|
|
appBarTitle: widget.title,
|
|
|
|
|
|
|
|
isShowDecPage: false,
|
|
|
|
|
|
|
|
isShowAppBar: true,
|
|
|
|
|
|
|
|
showNewAppBar: true,
|
|
|
|
|
|
|
|
showNewAppBarTitle: false,
|
|
|
|
|
|
|
|
body: Padding(
|
|
|
|
|
|
|
|
padding: EdgeInsets.only(bottom: 20, left: 21, right: 21),
|
|
|
|
|
|
|
|
child: Column(children: [
|
|
|
|
|
|
|
|
Expanded(
|
|
|
|
|
|
|
|
child: ListView(
|
|
|
|
|
|
|
|
padding: EdgeInsets.zero,
|
|
|
|
|
|
|
|
physics: BouncingScrollPhysics(),
|
|
|
|
|
|
|
|
children: [
|
|
|
|
|
|
|
|
SizedBox(height: 12),
|
|
|
|
|
|
|
|
if (widget.icon != null)
|
|
|
|
|
|
|
|
Align(
|
|
|
|
|
|
|
|
alignment: Alignment.centerLeft,
|
|
|
|
|
|
|
|
child: SvgPicture.asset(
|
|
|
|
|
|
|
|
widget.icon,
|
|
|
|
|
|
|
|
height: 35,
|
|
|
|
|
|
|
|
width: 35,
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
SizedBox(height: 16),
|
|
|
|
|
|
|
|
Text(
|
|
|
|
|
|
|
|
widget.title,
|
|
|
|
|
|
|
|
style: TextStyle(fontSize: 24, fontFamily: "Poppins", fontWeight: FontWeight.w700, color: Color(0xff2B353E), letterSpacing: -1.44, height: 23 / 24),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
Text(
|
|
|
|
|
|
|
|
widget.description,
|
|
|
|
|
|
|
|
style: TextStyle(fontSize: 14, fontFamily: "Poppins", fontWeight: FontWeight.w600, color: Color(0xff2B353E), letterSpacing: -0.56, height: 21 / 14),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
SizedBox(
|
|
|
|
|
|
|
|
height: 14,
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
if (!projectViewModel.isInternetConnection)
|
|
|
|
|
|
|
|
Center(
|
|
|
|
|
|
|
|
child: SizedBox(
|
|
|
|
|
|
|
|
height: MediaQuery.of(context).size.height * 0.55,
|
|
|
|
|
|
|
|
width: MediaQuery.of(context).size.width * 0.50,
|
|
|
|
|
|
|
|
child: Image.asset(projectViewModel.isArabic ? 'assets/images/Wifi-AR.png' : 'assets/images/wifi-EN.png'),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
if (projectViewModel.isInternetConnection && widget.imagesInfo != null)
|
|
|
|
|
|
|
|
CarouselSlider(
|
|
|
|
|
|
|
|
items: widget.imagesInfo.map((image) {
|
|
|
|
|
|
|
|
return Builder(
|
|
|
|
|
|
|
|
builder: (BuildContext context) {
|
|
|
|
|
|
|
|
return SizedBox(
|
|
|
|
|
|
|
|
width: MediaQuery.of(context).size.width * 0.50,
|
|
|
|
|
|
|
|
child: image.isAsset ? Image.asset(projectViewModel.isArabic ? image.imageAr : image.imageEn) : Image.network(projectViewModel.isArabic ? image.imageAr : image.imageEn));
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
);
|
|
|
|
|
|
|
|
}).toList(),
|
|
|
|
|
|
|
|
options: CarouselOptions(
|
|
|
|
|
|
|
|
height: MediaQuery.of(context).size.height * 0.55,
|
|
|
|
|
|
|
|
autoPlay: widget.imagesInfo.length > 1,
|
|
|
|
|
|
|
|
viewportFraction: 1.0,
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
],
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
SizedBox(
|
|
|
|
|
|
|
|
height: 43,
|
|
|
|
|
|
|
|
width: double.infinity,
|
|
|
|
|
|
|
|
child: FlatButton(
|
|
|
|
|
|
|
|
onPressed: () {
|
|
|
|
|
|
|
|
loginCheck(context);
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
child: Text(
|
|
|
|
|
|
|
|
TranslationBase.of(context).loginregister,
|
|
|
|
|
|
|
|
style: TextStyle(fontSize: 16, fontFamily: "Poppins", fontWeight: FontWeight.w600, color: Colors.white, letterSpacing: -0.48),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
// color: Color(0xffD02127),
|
|
|
|
|
|
|
|
color: Color(0xffD02127),
|
|
|
|
|
|
|
|
shape: RoundedRectangleBorder(
|
|
|
|
|
|
|
|
borderRadius: BorderRadius.circular(6),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
]),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Scaffold(
|
|
|
|
backgroundColor: Color(0xfff8f8f8),
|
|
|
|
backgroundColor: Color(0xfff8f8f8),
|
|
|
|
resizeToAvoidBottomPadding: false,
|
|
|
|
resizeToAvoidBottomPadding: false,
|
|
|
|
appBar: AppBar(
|
|
|
|
appBar: AppBar(
|
|
|
|
|