|
|
@ -1,20 +1,11 @@
|
|
|
|
import 'dart:async';
|
|
|
|
|
|
|
|
import 'package:bot_toast/bot_toast.dart';
|
|
|
|
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
import 'package:flutter_easyrefresh/easy_refresh.dart';
|
|
|
|
import 'package:flutter_easyrefresh/easy_refresh.dart';
|
|
|
|
import 'package:project_telephony/base/base_style.dart';
|
|
|
|
import 'package:project_telephony/base/base_style.dart';
|
|
|
|
import 'package:project_telephony/ui/widget/centertipsalterwidget.dart';
|
|
|
|
|
|
|
|
import 'package:project_telephony/ui/widget/plone_back_button.dart';
|
|
|
|
import 'package:project_telephony/ui/widget/plone_back_button.dart';
|
|
|
|
import 'package:project_telephony/utils/headers.dart';
|
|
|
|
import 'package:project_telephony/utils/headers.dart';
|
|
|
|
import 'package:project_telephony/utils/user_tool.dart';
|
|
|
|
|
|
|
|
import 'package:provider/provider.dart';
|
|
|
|
|
|
|
|
import 'package:tab_indicator_styler/tab_indicator_styler.dart';
|
|
|
|
import 'package:tab_indicator_styler/tab_indicator_styler.dart';
|
|
|
|
import '../../constants/api.dart';
|
|
|
|
|
|
|
|
import '../../model/network/api_client.dart';
|
|
|
|
|
|
|
|
import '../../model/network/base_model.dart';
|
|
|
|
|
|
|
|
import '../../providers/user_provider.dart';
|
|
|
|
|
|
|
|
import '../../utils/toast/cloud_toast.dart';
|
|
|
|
|
|
|
|
import 'add_sms_page.dart';
|
|
|
|
|
|
|
|
import 'calling_idle_list.dart';
|
|
|
|
import 'calling_idle_list.dart';
|
|
|
|
|
|
|
|
|
|
|
|
class ContentRefusePage extends StatefulWidget {
|
|
|
|
class ContentRefusePage extends StatefulWidget {
|
|
|
@ -69,15 +60,21 @@ class _ContentRefusePageState extends State<ContentRefusePage>
|
|
|
|
padding: EdgeInsets.all(8.w),
|
|
|
|
padding: EdgeInsets.all(8.w),
|
|
|
|
decoration:BoxDecoration(color: const Color(0xFFF9F9F9),borderRadius: BorderRadius.all(Radius.circular(44.w))),
|
|
|
|
decoration:BoxDecoration(color: const Color(0xFFF9F9F9),borderRadius: BorderRadius.all(Radius.circular(44.w))),
|
|
|
|
child: TabBar(
|
|
|
|
child: TabBar(
|
|
|
|
|
|
|
|
|
|
|
|
// indicator: Decoration(),
|
|
|
|
// indicator: Decoration(),
|
|
|
|
controller: _tabController,
|
|
|
|
controller: _tabController,
|
|
|
|
labelColor:const Color(0xFF1890FF),
|
|
|
|
labelColor:const Color(0xFF1890FF),
|
|
|
|
unselectedLabelColor:const Color(0xFF999999),
|
|
|
|
unselectedLabelColor:const Color(0xFF999999),
|
|
|
|
unselectedLabelStyle:const TextStyle(fontWeight:FontWeight.bold),
|
|
|
|
unselectedLabelStyle:const TextStyle(fontWeight:FontWeight.bold),
|
|
|
|
labelStyle:const TextStyle(fontWeight:FontWeight.bold),
|
|
|
|
labelStyle:const TextStyle(fontWeight:FontWeight.bold),
|
|
|
|
// onTap: () async{
|
|
|
|
onTap: (num) {
|
|
|
|
// _refreshController.callRefresh();
|
|
|
|
if(num==0){
|
|
|
|
// },
|
|
|
|
_callingRefreshController.callRefresh();
|
|
|
|
|
|
|
|
}else{
|
|
|
|
|
|
|
|
_wasCalledRefreshController.callRefresh();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
},
|
|
|
|
indicator: RectangularIndicator(
|
|
|
|
indicator: RectangularIndicator(
|
|
|
|
color: Colors.white,
|
|
|
|
color: Colors.white,
|
|
|
|
bottomLeftRadius: 44.w,
|
|
|
|
bottomLeftRadius: 44.w,
|
|
|
@ -91,7 +88,6 @@ class _ContentRefusePageState extends State<ContentRefusePage>
|
|
|
|
tabs: const [
|
|
|
|
tabs: const [
|
|
|
|
// _tab(0, "被叫接听"),_tab(1, "主叫接听"),
|
|
|
|
// _tab(0, "被叫接听"),_tab(1, "主叫接听"),
|
|
|
|
Tab(text: "被叫拒接/未接",),Tab(text: "主叫拒接/未接",)
|
|
|
|
Tab(text: "被叫拒接/未接",),Tab(text: "主叫拒接/未接",)
|
|
|
|
|
|
|
|
|
|
|
|
]),
|
|
|
|
]),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -101,11 +97,12 @@ class _ContentRefusePageState extends State<ContentRefusePage>
|
|
|
|
// _getBox(),
|
|
|
|
// _getBox(),
|
|
|
|
CallingIdleList(
|
|
|
|
CallingIdleList(
|
|
|
|
// contant: const [],
|
|
|
|
// contant: const [],
|
|
|
|
refreshController: _callingRefreshController, isIdle: false,
|
|
|
|
refreshController: _callingRefreshController,
|
|
|
|
|
|
|
|
isIdle: false,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
CallingIdleList(
|
|
|
|
CallingIdleList(
|
|
|
|
// contant: const [],
|
|
|
|
// contant: const [],
|
|
|
|
refreshController: _callingRefreshController, isIdle: true,
|
|
|
|
refreshController: _wasCalledRefreshController, isIdle: true,
|
|
|
|
)
|
|
|
|
)
|
|
|
|
]))
|
|
|
|
]))
|
|
|
|
],
|
|
|
|
],
|
|
|
|