@ -1,4 +1,5 @@
import ' package:diplomaticquarterapp/core/enum/viewstate.dart ' ;
import ' package:diplomaticquarterapp/core/enum/viewstate.dart ' ;
import ' package:diplomaticquarterapp/core/viewModels/project_view_model.dart ' ;
import ' package:diplomaticquarterapp/core/viewModels/qr_view_model.dart ' ;
import ' package:diplomaticquarterapp/core/viewModels/qr_view_model.dart ' ;
import ' package:diplomaticquarterapp/pages/base/base_view.dart ' ;
import ' package:diplomaticquarterapp/pages/base/base_view.dart ' ;
import ' package:diplomaticquarterapp/uitl/translations_delegate_base.dart ' ;
import ' package:diplomaticquarterapp/uitl/translations_delegate_base.dart ' ;
@ -9,11 +10,13 @@ import 'package:flutter/cupertino.dart';
import ' package:flutter/material.dart ' ;
import ' package:flutter/material.dart ' ;
import ' package:maps_launcher/maps_launcher.dart ' ;
import ' package:maps_launcher/maps_launcher.dart ' ;
import ' package:diplomaticquarterapp/core/model/ImagesInfo.dart ' ;
import ' package:diplomaticquarterapp/core/model/ImagesInfo.dart ' ;
import ' package:provider/provider.dart ' ;
import ' ../../d_q_icons_icons.dart ' ;
import ' ../../d_q_icons_icons.dart ' ;
class ParkingPage extends StatelessWidget {
class ParkingPage extends StatelessWidget {
@ override
@ override
Widget build ( BuildContext context ) {
Widget build ( BuildContext context ) {
ProjectViewModel projectViewModel = Provider . of ( context ) ;
return BaseView < QrViewModel > (
return BaseView < QrViewModel > (
onModelReady: ( model ) = > model . getIsSaveParking ( ) ,
onModelReady: ( model ) = > model . getIsSaveParking ( ) ,
builder: ( _ , model , widget ) = > AppScaffold (
builder: ( _ , model , widget ) = > AppScaffold (
@ -21,10 +24,7 @@ class ParkingPage extends StatelessWidget {
appBarTitle: TranslationBase . of ( context ) . parking ,
appBarTitle: TranslationBase . of ( context ) . parking ,
description: TranslationBase . of ( context ) . parkingDescription ,
description: TranslationBase . of ( context ) . parkingDescription ,
imagesInfo: [
imagesInfo: [
ImagesInfo (
ImagesInfo ( imageAr: ' assets/images/bc_parking.png ' , imageEn: ' assets/images/bc_parking.png ' , isAsset: true )
imageAr: ' assets/images/bc_parking.png ' ,
imageEn: ' assets/images/bc_parking.png ' ,
isAsset: true )
] ,
] ,
body: SingleChildScrollView (
body: SingleChildScrollView (
padding: EdgeInsets . all ( 12 ) ,
padding: EdgeInsets . all ( 12 ) ,
@ -50,7 +50,9 @@ class ParkingPage extends StatelessWidget {
Row (
Row (
children: < Widget > [
children: < Widget > [
Expanded (
Expanded (
child: Container ( child: Icon ( /*Icons.landscape*/ DQIcons . parking_icon , size: 130 ) , ) ,
child: Container (
child: Icon ( /*Icons.landscape*/ DQIcons . parking_icon , size: 130 ) ,
) ,
) ,
) ,
SizedBox (
SizedBox (
width: 15 ,
width: 15 ,
@ -85,15 +87,15 @@ class ParkingPage extends StatelessWidget {
padding: EdgeInsets . all ( 8 ) ,
padding: EdgeInsets . all ( 8 ) ,
width: double . infinity ,
width: double . infinity ,
decoration: BoxDecoration (
decoration: BoxDecoration (
borderRadius: BorderRadius . circular ( 10 ) ,
borderRadius: BorderRadius . circular ( 10 ) , color: Colors . white , shape: BoxShape . rectangle ) ,
color: Colors . white ,
shape: BoxShape . rectangle ) ,
height: 70 ,
height: 70 ,
child: Column (
child: Column (
crossAxisAlignment: CrossAxisAlignment . start ,
crossAxisAlignment: CrossAxisAlignment . start ,
children: < Widget > [
children: < Widget > [
Texts ( TranslationBase . of ( context ) . showMyPark ) ,
Texts ( TranslationBase . of ( context ) . showMyPark ) ,
Texts ( model . qrParkingModel . floorDescriptionN ) ,
Texts ( projectViewModel . isArabic
? model . qrParkingModel . floorDescriptionN
: model . qrParkingModel . floorDescription ) ,
] ,
] ,
) ,
) ,
) ,
) ,
@ -102,9 +104,7 @@ class ParkingPage extends StatelessWidget {
) ,
) ,
Container (
Container (
decoration: BoxDecoration (
decoration: BoxDecoration (
borderRadius: BorderRadius . circular ( 10 ) ,
borderRadius: BorderRadius . circular ( 10 ) , color: Colors . white , shape: BoxShape . rectangle ) ,
color: Colors . white ,
shape: BoxShape . rectangle ) ,
padding: EdgeInsets . all ( 8 ) ,
padding: EdgeInsets . all ( 8 ) ,
width: double . infinity ,
width: double . infinity ,
height: 70 ,
height: 70 ,
@ -112,7 +112,9 @@ class ParkingPage extends StatelessWidget {
crossAxisAlignment: CrossAxisAlignment . start ,
crossAxisAlignment: CrossAxisAlignment . start ,
children: < Widget > [
children: < Widget > [
Texts ( TranslationBase . of ( context ) . gate ) ,
Texts ( TranslationBase . of ( context ) . gate ) ,
Texts ( model . qrParkingModel . gateDescriptionN ) ,
Texts ( projectViewModel . isArabic
? model . qrParkingModel . gateDescriptionN
: model . qrParkingModel . gateDescription ) ,
] ,
] ,
) ,
) ,
) ,
) ,
@ -121,9 +123,7 @@ class ParkingPage extends StatelessWidget {
) ,
) ,
Container (
Container (
decoration: BoxDecoration (
decoration: BoxDecoration (
borderRadius: BorderRadius . circular ( 10 ) ,
borderRadius: BorderRadius . circular ( 10 ) , color: Colors . white , shape: BoxShape . rectangle ) ,
color: Colors . white ,
shape: BoxShape . rectangle ) ,
padding: EdgeInsets . all ( 8 ) ,
padding: EdgeInsets . all ( 8 ) ,
width: double . infinity ,
width: double . infinity ,
height: 70 ,
height: 70 ,
@ -131,7 +131,9 @@ class ParkingPage extends StatelessWidget {
crossAxisAlignment: CrossAxisAlignment . start ,
crossAxisAlignment: CrossAxisAlignment . start ,
children: < Widget > [
children: < Widget > [
Texts ( TranslationBase . of ( context ) . building ) ,
Texts ( TranslationBase . of ( context ) . building ) ,
Texts ( model . qrParkingModel . buildingDescriptionN ) ,
Texts ( projectViewModel . isArabic
? model . qrParkingModel . buildingDescriptionN
: model . qrParkingModel . buildingDescription ) ,
] ,
] ,
) ,
) ,
) ,
) ,
@ -141,16 +143,16 @@ class ParkingPage extends StatelessWidget {
Container (
Container (
padding: EdgeInsets . all ( 8 ) ,
padding: EdgeInsets . all ( 8 ) ,
decoration: BoxDecoration (
decoration: BoxDecoration (
borderRadius: BorderRadius . circular ( 10 ) ,
borderRadius: BorderRadius . circular ( 10 ) , color: Colors . white , shape: BoxShape . rectangle ) ,
color: Colors . white ,
shape: BoxShape . rectangle ) ,
width: double . infinity ,
width: double . infinity ,
height: 70 ,
height: 70 ,
child: Column (
child: Column (
crossAxisAlignment: CrossAxisAlignment . start ,
crossAxisAlignment: CrossAxisAlignment . start ,
children: < Widget > [
children: < Widget > [
Texts ( TranslationBase . of ( context ) . branch ) ,
Texts ( TranslationBase . of ( context ) . branch ) ,
Texts ( model . qrParkingModel . branchDescriptionN ) ,
Texts ( projectViewModel . isArabic
? model . qrParkingModel . branchDescriptionN
: model . qrParkingModel . branchDescription ) ,
] ,
] ,
) ,
) ,
) ,
) ,