|
|
|
|
@ -10,6 +10,7 @@ import 'package:flutter/cupertino.dart';
|
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
|
import 'package:provider/provider.dart';
|
|
|
|
|
|
|
|
|
|
bool OFFERS_VIEW_ONLY = false;
|
|
|
|
|
class PackagesOfferTabPage extends StatefulWidget{
|
|
|
|
|
|
|
|
|
|
AuthenticatedUser user;
|
|
|
|
|
@ -47,30 +48,33 @@ class PackagesOfferTabPageState extends State<PackagesOfferTabPage> with SingleT
|
|
|
|
|
showNewAppBarTitle: true,
|
|
|
|
|
body: Column(
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
TabBar(
|
|
|
|
|
controller: _tabController,
|
|
|
|
|
indicatorWeight: 3.0,
|
|
|
|
|
indicatorSize: TabBarIndicatorSize.tab,
|
|
|
|
|
labelColor: Color(0xff2B353E),
|
|
|
|
|
unselectedLabelColor: Color(0xff575757),
|
|
|
|
|
labelPadding: EdgeInsets.only(top: 15, bottom: 13, left: 20, right: 20),
|
|
|
|
|
labelStyle: TextStyle(
|
|
|
|
|
fontFamily: _projectViewModel.isArabic ? 'Cairo' : 'Poppins',
|
|
|
|
|
fontSize: 16,
|
|
|
|
|
fontWeight: FontWeight.w600,
|
|
|
|
|
letterSpacing: -0.48,
|
|
|
|
|
),
|
|
|
|
|
unselectedLabelStyle: TextStyle(
|
|
|
|
|
fontFamily: _projectViewModel.isArabic ? 'Cairo' : 'Poppins',
|
|
|
|
|
fontSize: 16,
|
|
|
|
|
fontWeight: FontWeight.w600,
|
|
|
|
|
letterSpacing: -0.48,
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: OFFERS_VIEW_ONLY ? null : 0,
|
|
|
|
|
child: TabBar(
|
|
|
|
|
controller: _tabController,
|
|
|
|
|
indicatorWeight: 3.0,
|
|
|
|
|
indicatorSize: TabBarIndicatorSize.tab,
|
|
|
|
|
labelColor: Color(0xff2B353E),
|
|
|
|
|
unselectedLabelColor: Color(0xff575757),
|
|
|
|
|
labelPadding: EdgeInsets.only(top: 15, bottom: 13, left: 20, right: 20),
|
|
|
|
|
labelStyle: TextStyle(
|
|
|
|
|
fontFamily: _projectViewModel.isArabic ? 'Cairo' : 'Poppins',
|
|
|
|
|
fontSize: 16,
|
|
|
|
|
fontWeight: FontWeight.w600,
|
|
|
|
|
letterSpacing: -0.48,
|
|
|
|
|
),
|
|
|
|
|
unselectedLabelStyle: TextStyle(
|
|
|
|
|
fontFamily: _projectViewModel.isArabic ? 'Cairo' : 'Poppins',
|
|
|
|
|
fontSize: 16,
|
|
|
|
|
fontWeight: FontWeight.w600,
|
|
|
|
|
letterSpacing: -0.48,
|
|
|
|
|
),
|
|
|
|
|
tabs: [Text(TranslationBase.of(context).offerAndPackages), Text(TranslationBase.of(context).orderLog)],
|
|
|
|
|
),
|
|
|
|
|
tabs: [Text(TranslationBase.of(context).offerAndPackages), Text(TranslationBase.of(context).orderLog)],
|
|
|
|
|
),
|
|
|
|
|
Expanded(
|
|
|
|
|
child: TabBarView(
|
|
|
|
|
physics: BouncingScrollPhysics(),
|
|
|
|
|
physics: OFFERS_VIEW_ONLY ? BouncingScrollPhysics() : NeverScrollableScrollPhysics(),
|
|
|
|
|
controller: _tabController,
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
PackagesHomePage(widget.user),
|
|
|
|
|
|