|
|
|
|
@ -20,6 +20,8 @@ import 'package:diplomaticquarterapp/config/shared_pref_kay.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/routes.dart';
|
|
|
|
|
|
|
|
|
|
class MyFamily extends StatefulWidget {
|
|
|
|
|
final bool isAppbarVisible;
|
|
|
|
|
MyFamily({this.isAppbarVisible =true});
|
|
|
|
|
@override
|
|
|
|
|
_MyFamily createState() => _MyFamily();
|
|
|
|
|
}
|
|
|
|
|
@ -39,65 +41,66 @@ class _MyFamily extends State<MyFamily> with TickerProviderStateMixin {
|
|
|
|
|
|
|
|
|
|
bool expandFlag = false;
|
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
|
return Scaffold(
|
|
|
|
|
appBar: AppBar(
|
|
|
|
|
bottom: TabBar(
|
|
|
|
|
indicatorColor: Colors.red,
|
|
|
|
|
tabs: [
|
|
|
|
|
Padding(
|
|
|
|
|
padding: EdgeInsets.all(6),
|
|
|
|
|
child: AppText(
|
|
|
|
|
TranslationBase.of(context).family,
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
)),
|
|
|
|
|
Padding(
|
|
|
|
|
padding: EdgeInsets.all(6),
|
|
|
|
|
child: AppText(
|
|
|
|
|
TranslationBase.of(context).request,
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
)),
|
|
|
|
|
],
|
|
|
|
|
controller: _tabController,
|
|
|
|
|
),
|
|
|
|
|
title: AppText(TranslationBase.of(context).myFamilyFiles,
|
|
|
|
|
color: Colors.white)),
|
|
|
|
|
body: TabBarView(
|
|
|
|
|
// physics: NeverScrollableScrollPhysics(),
|
|
|
|
|
children: [myFamilyDetails(context), myFamilyRequest(context)],
|
|
|
|
|
controller: _tabController),
|
|
|
|
|
bottomNavigationBar: BottomBarSearch());
|
|
|
|
|
// return Scaffold(
|
|
|
|
|
// appBar: AppBar(
|
|
|
|
|
// bottom: TabBar(
|
|
|
|
|
// indicatorColor: Colors.red,
|
|
|
|
|
// tabs: [
|
|
|
|
|
// Padding(
|
|
|
|
|
// padding: EdgeInsets.all(6),
|
|
|
|
|
// child: AppText(
|
|
|
|
|
// TranslationBase.of(context).family,
|
|
|
|
|
// color: Colors.white,
|
|
|
|
|
// )),
|
|
|
|
|
// Padding(
|
|
|
|
|
// padding: EdgeInsets.all(6),
|
|
|
|
|
// child: AppText(
|
|
|
|
|
// TranslationBase.of(context).request,
|
|
|
|
|
// color: Colors.white,
|
|
|
|
|
// )),
|
|
|
|
|
// ],
|
|
|
|
|
// controller: _tabController,
|
|
|
|
|
// ),
|
|
|
|
|
//
|
|
|
|
|
// ),
|
|
|
|
|
// body: TabBarView(
|
|
|
|
|
// // physics: NeverScrollableScrollPhysics(),
|
|
|
|
|
// children: [myFamilyDetails(context), myFamilyRequest(context)],
|
|
|
|
|
// controller: _tabController),
|
|
|
|
|
// );
|
|
|
|
|
// //bottomNavigationBar: BottomBarSearch());
|
|
|
|
|
|
|
|
|
|
// AppScaffold(
|
|
|
|
|
// appBarTitle: TranslationBase.of(context).myFamilyFiles,
|
|
|
|
|
// isShowAppBar: true,
|
|
|
|
|
// body: SingleChildScrollView(
|
|
|
|
|
// child: Container(
|
|
|
|
|
// height: SizeConfig.screenHeight,
|
|
|
|
|
// width: SizeConfig.realScreenWidth,
|
|
|
|
|
// padding: EdgeInsets.all(20),
|
|
|
|
|
// child: Stack(
|
|
|
|
|
// children: <Widget>[
|
|
|
|
|
// TabBar(
|
|
|
|
|
// controller: _tabController,
|
|
|
|
|
// indicatorColor: Colors.red,
|
|
|
|
|
// tabs: [
|
|
|
|
|
// Padding(
|
|
|
|
|
// padding: EdgeInsets.all(6),
|
|
|
|
|
// child: Text(TranslationBase.of(context).family)),
|
|
|
|
|
// Padding(
|
|
|
|
|
// padding: EdgeInsets.all(6),
|
|
|
|
|
// child: Text(TranslationBase.of(context).request)),
|
|
|
|
|
// ],
|
|
|
|
|
// ),
|
|
|
|
|
// TabBarView(
|
|
|
|
|
// controller: _tabController,
|
|
|
|
|
// children: [
|
|
|
|
|
// myFamilyDetails(context),
|
|
|
|
|
// myFamilyRequest(context)
|
|
|
|
|
// ],
|
|
|
|
|
// )
|
|
|
|
|
// ],
|
|
|
|
|
// ))));
|
|
|
|
|
return AppScaffold(
|
|
|
|
|
appBarTitle: TranslationBase.of(context).myFamilyFiles,
|
|
|
|
|
isShowAppBar: widget.isAppbarVisible,
|
|
|
|
|
body: SingleChildScrollView(
|
|
|
|
|
child: Container(
|
|
|
|
|
height: SizeConfig.screenHeight,
|
|
|
|
|
width: SizeConfig.realScreenWidth,
|
|
|
|
|
padding: EdgeInsets.all(20),
|
|
|
|
|
child: Stack(
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
TabBar(
|
|
|
|
|
controller: _tabController,
|
|
|
|
|
indicatorColor: Colors.red,
|
|
|
|
|
tabs: [
|
|
|
|
|
Padding(
|
|
|
|
|
padding: EdgeInsets.all(6),
|
|
|
|
|
child: Text(TranslationBase.of(context).family)),
|
|
|
|
|
Padding(
|
|
|
|
|
padding: EdgeInsets.all(6),
|
|
|
|
|
child: Text(TranslationBase.of(context).request)),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
TabBarView(
|
|
|
|
|
controller: _tabController,
|
|
|
|
|
children: [
|
|
|
|
|
myFamilyDetails(context),
|
|
|
|
|
myFamilyRequest(context)
|
|
|
|
|
],
|
|
|
|
|
)
|
|
|
|
|
],
|
|
|
|
|
))));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Widget myFamilyDetails(context) {
|
|
|
|
|
@ -219,12 +222,15 @@ class _MyFamily extends State<MyFamily> with TickerProviderStateMixin {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Widget myFamilyRequest(context) {
|
|
|
|
|
return Padding(
|
|
|
|
|
padding: const EdgeInsets.symmetric(horizontal: 10.0),
|
|
|
|
|
child: SingleChildScrollView(
|
|
|
|
|
child: Column(
|
|
|
|
|
return //Padding(
|
|
|
|
|
// padding: const EdgeInsets.symmetric(horizontal: 10.0),
|
|
|
|
|
// child:
|
|
|
|
|
SingleChildScrollView(
|
|
|
|
|
child: Container(
|
|
|
|
|
height: MediaQuery.of(context).size.height,
|
|
|
|
|
margin: EdgeInsets.only(top:50),
|
|
|
|
|
child: Column(
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
// SizedBox(height: 20.0),
|
|
|
|
|
RoundedContainer(
|
|
|
|
|
child: ExpansionTile(
|
|
|
|
|
title: Text(
|
|
|
|
|
|