@ -76,11 +76,14 @@ class BranchDetailPage extends StatelessWidget {
Row (
children: [
Expanded (
child: titleWidget ( MyAssets . icBranches , LocaleKeys . branchInfo . tr ( ) ) ,
child: titleWidget ( MyAssets . icBranches ,
LocaleKeys . branchInfo . tr ( ) ) ,
) ,
IconButton (
onPressed: ( ) {
navigateWithName ( context , ProviderAppRoutes . defineBranch , arguments: branchData ) ;
navigateWithName (
context , ProviderAppRoutes . defineBranch ,
arguments: branchData ) ;
} ,
icon: SvgPicture . asset ( MyAssets . icEdit ) ,
)
@ -88,11 +91,17 @@ class BranchDetailPage extends StatelessWidget {
) ,
Column (
children: [
showData ( " ${ LocaleKeys . country . tr ( ) } : " , " branchData.countryName " . toString ( ) ) ,
showData ( " ${ LocaleKeys . city . tr ( ) } : " , " branchData.cityName " . toString ( ) ) ,
showData ( " ${ LocaleKeys . branchName . tr ( ) } : " , branchData . branchName . toString ( ) ) ,
showData ( " ${ LocaleKeys . branchDescription . tr ( ) } : " , branchData . branchDescription . toString ( ) ) ,
showData ( " ${ LocaleKeys . address . tr ( ) } : " , branchData . address . toString ( ) ) ,
showData ( " ${ LocaleKeys . country . tr ( ) } : " ,
branchData . countryName . toString ( ) ) ,
showData ( " ${ LocaleKeys . city . tr ( ) } : " ,
branchData . cityName . toString ( ) ) ,
showData ( " ${ LocaleKeys . branchName . tr ( ) } : " ,
branchData . branchName . toString ( ) ) ,
showData (
" ${ LocaleKeys . branchDescription . tr ( ) } : " ,
branchData . branchDescription . toString ( ) ) ,
showData ( " ${ LocaleKeys . address . tr ( ) } : " ,
branchData . address . toString ( ) ) ,
] ,
) ,
] ,
@ -101,7 +110,8 @@ class BranchDetailPage extends StatelessWidget {
Container (
width: double . infinity ,
color: MyColors . darkIconColor ,
padding: const EdgeInsets . symmetric ( horizontal: 20 , vertical: 8 ) ,
padding: const EdgeInsets . symmetric (
horizontal: 20 , vertical: 8 ) ,
child: Row (
children: [
const Icon (
@ -125,7 +135,9 @@ class BranchDetailPage extends StatelessWidget {
] ,
) ,
) . onPress ( ( ) {
navigateWithName ( context , ProviderAppRoutes . schedulesList , arguments: branchData . id . toString ( ) ) ;
navigateWithName (
context , ProviderAppRoutes . schedulesList ,
arguments: branchData . id . toString ( ) ) ;
} ) ,
Row (
crossAxisAlignment: CrossAxisAlignment . center ,
@ -152,7 +164,8 @@ class BranchDetailPage extends StatelessWidget {
backgroundColor: MyColors . darkWhiteColor ,
width: double . infinity ,
paddingAll: 20 ,
margin: const EdgeInsets . only ( left: 20 , right: 20 , top: 20 ) ,
margin:
const EdgeInsets . only ( left: 20 , right: 20 , top: 20 ) ,
)
. onPress ( ( ) {
navigateWithName (
@ -170,12 +183,17 @@ class BranchDetailPage extends StatelessWidget {
itemBuilder: ( context , pIndex ) {
return InkWell (
onTap: ( ) {
categories [ pIndex ] . branchId = branchData . id . toString ( ) ;
categories [ pIndex ] . branchName = branchData . branchName . toString ( ) ;
navigateWithName ( context , ProviderAppRoutes . servicesList , arguments: categories [ pIndex ] ) ;
categories [ pIndex ] . branchId =
branchData . id . toString ( ) ;
categories [ pIndex ] . branchName =
branchData . branchName . toString ( ) ;
navigateWithName (
context , ProviderAppRoutes . servicesList ,
arguments: categories [ pIndex ] ) ;
} ,
child: Row (
crossAxisAlignment: CrossAxisAlignment . start ,
crossAxisAlignment:
CrossAxisAlignment . start ,
mainAxisSize: MainAxisSize . min ,
children: [
Padding (
@ -189,12 +207,19 @@ class BranchDetailPage extends StatelessWidget {
8. width ,
Expanded (
child: Column (
crossAxisAlignment: CrossAxisAlignment . start ,
mainAxisAlignment: MainAxisAlignment . start ,
crossAxisAlignment:
CrossAxisAlignment . start ,
mainAxisAlignment:
MainAxisAlignment . start ,
children: [
Row (
children: [
categories [ pIndex ] . categoryName . toString ( ) . toText ( fontSize: 16 , isBold: true ) ,
categories [ pIndex ]
. categoryName
. toString ( )
. toText (
fontSize: 16 ,
isBold: true ) ,
/ / Padding (
/ / padding: const EdgeInsets . all ( 4.0 ) ,
/ / child: SvgPicture . asset (
@ -204,26 +229,46 @@ class BranchDetailPage extends StatelessWidget {
/ / ) ,
/ / ) ,
] ,
mainAxisAlignment: MainAxisAlignment . spaceBetween ,
mainAxisAlignment:
MainAxisAlignment . spaceBetween ,
) ,
Row (
children: [
Expanded (
child: ListView . builder (
itemBuilder: ( context , index ) {
itemBuilder:
( context , index ) {
return Container (
child: ( EasyLocalization . of ( context ) ? . currentLocale ? . countryCode = = " SA "
? categories [ pIndex ] . services ! [ index ] . serviceDescriptionN . toString ( )
: categories [ pIndex ] . services ! [ index ] . serviceDescription . toString ( ) )
child: ( EasyLocalization . of (
context )
? . currentLocale
? . countryCode = =
" SA "
? categories [
pIndex ]
. services ! [
index ]
. serviceDescriptionN
. toString ( )
: categories [
pIndex ]
. services ! [
index ]
. serviceDescription
. toString ( ) )
. toText (
fontSize: 12 ,
color: MyColors . lightTextColor ,
color: MyColors
. lightTextColor ,
isBold: true ,
) ,
) ;
} ,
itemCount: categories [ pIndex ] . services ? . length ,
physics: const NeverScrollableScrollPhysics ( ) ,
itemCount: categories [ pIndex ]
. services
? . length ,
physics:
const NeverScrollableScrollPhysics ( ) ,
shrinkWrap: true ,
padding: EdgeInsets . zero ,
) ,
@ -236,15 +281,18 @@ class BranchDetailPage extends StatelessWidget {
) ,
) ,
] ,
mainAxisAlignment: MainAxisAlignment . end ,
crossAxisAlignment: CrossAxisAlignment . end ,
mainAxisAlignment:
MainAxisAlignment . end ,
crossAxisAlignment:
CrossAxisAlignment . end ,
)
] ,
) ) ,
] ,
) . toContainer (
width: double . infinity ,
padding: const EdgeInsets . symmetric ( horizontal: 12 , vertical: 8 ) ,
padding: const EdgeInsets . symmetric (
horizontal: 12 , vertical: 8 ) ,
isShadowEnabled: true ,
) ,
) ;
@ -253,7 +301,8 @@ class BranchDetailPage extends StatelessWidget {
physics: const NeverScrollableScrollPhysics ( ) ,
shrinkWrap: true ,
padding: const EdgeInsets . all ( 20 ) ,
separatorBuilder: ( BuildContext context , int index ) {
separatorBuilder:
( BuildContext context , int index ) {
return 12. height ;
} ,
) ,
@ -278,7 +327,8 @@ class BranchDetailPage extends StatelessWidget {
txtColor: MyColors . darkPrimaryColor ,
isFilled: false ,
onPressed: ( ) {
navigateWithName ( context , ProviderAppRoutes . dealerUser , arguments: branchData . id . toString ( ) ) ;
navigateWithName ( context , ProviderAppRoutes . dealerUser ,
arguments: branchData . id . toString ( ) ) ;
} ,
) ,
) ,