|
|
|
|
@ -1,5 +1,6 @@
|
|
|
|
|
import 'dart:ui';
|
|
|
|
|
|
|
|
|
|
import 'package:diplomaticquarterapp/config/config.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/config/shared_pref_kay.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/config/size_config.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/core/model/ImagesInfo.dart';
|
|
|
|
|
@ -34,7 +35,6 @@ import 'package:diplomaticquarterapp/widgets/transitions/fade_page.dart';
|
|
|
|
|
import 'package:flutter/cupertino.dart';
|
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
|
import 'package:provider/provider.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/config/config.dart';
|
|
|
|
|
|
|
|
|
|
class MyFamily extends StatefulWidget {
|
|
|
|
|
final bool isAppbarVisible;
|
|
|
|
|
@ -192,24 +192,40 @@ class _MyFamily extends State<MyFamily> with TickerProviderStateMixin {
|
|
|
|
|
Row(
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
|
|
|
|
children: [
|
|
|
|
|
Row(
|
|
|
|
|
children: [
|
|
|
|
|
CupertinoSwitch(
|
|
|
|
|
value: isSwitchUser,
|
|
|
|
|
onChanged: (value) {
|
|
|
|
|
setState(() {
|
|
|
|
|
isSwitchUser = value;
|
|
|
|
|
});
|
|
|
|
|
if (isSwitchUser == true) switchUser(snapshot.data.getAllSharedRecordsByStatusList[index], context);
|
|
|
|
|
},
|
|
|
|
|
),
|
|
|
|
|
Texts(
|
|
|
|
|
TranslationBase.of(context).switchUser,
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
fontSize: 12,
|
|
|
|
|
)
|
|
|
|
|
],
|
|
|
|
|
Container(
|
|
|
|
|
margin: EdgeInsets.only(top: 5.0),
|
|
|
|
|
width: 100.0,
|
|
|
|
|
child: DefaultButton(
|
|
|
|
|
TranslationBase.of(context).switchUser,
|
|
|
|
|
() {
|
|
|
|
|
// setState(() {
|
|
|
|
|
// isSwitchUser = value;
|
|
|
|
|
// });
|
|
|
|
|
switchUser(snapshot.data.getAllSharedRecordsByStatusList[index], AppGlobal.context);
|
|
|
|
|
},
|
|
|
|
|
fontSize: 12.0,
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
textColor: Colors.black,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
// Row(
|
|
|
|
|
// children: [
|
|
|
|
|
// CupertinoSwitch(
|
|
|
|
|
// value: isSwitchUser,
|
|
|
|
|
// onChanged: (value) {
|
|
|
|
|
// setState(() {
|
|
|
|
|
// isSwitchUser = value;
|
|
|
|
|
// });
|
|
|
|
|
// if (isSwitchUser == true) switchUser(snapshot.data.getAllSharedRecordsByStatusList[index], context);
|
|
|
|
|
// },
|
|
|
|
|
// ),
|
|
|
|
|
// Texts(
|
|
|
|
|
// TranslationBase.of(context).switchUser,
|
|
|
|
|
// color: Colors.white,
|
|
|
|
|
// fontSize: 12,
|
|
|
|
|
// )
|
|
|
|
|
// ],
|
|
|
|
|
// ),
|
|
|
|
|
InkWell(
|
|
|
|
|
onTap: () {
|
|
|
|
|
deleteFamily(snapshot.data.getAllSharedRecordsByStatusList[index], context);
|
|
|
|
|
|