提交更改

master
王亚玲 2 years ago
parent 7762d5ce35
commit c575c16cce

@ -29,7 +29,7 @@ class _ExcludeContactsPageState extends State<ExcludeContactsPage> {
@override @override
void initState() { void initState() {
super.initState(); super.initState();
_viewLoading(); // _viewLoading();
} }
Future _viewLoading() async { Future _viewLoading() async {

@ -9,7 +9,7 @@ import 'package:provider/provider.dart';
import '../constants/environment/environment.dart'; import '../constants/environment/environment.dart';
import '../providers/user_provider.dart'; import '../providers/user_provider.dart';
import '../utils/hive_store.dart'; import '../utils/hive_store.dart';
import 'login/login_page.dart';
class Loading extends StatefulWidget { class Loading extends StatefulWidget {
Loading({Key? key}) : super(key: key); Loading({Key? key}) : super(key: key);
@ -27,14 +27,14 @@ class _LoadingState extends State<Loading> {
void initState() { void initState() {
super.initState(); super.initState();
final userProvider = Provider.of<UserProvider>(context, listen: false); final userProvider = Provider.of<UserProvider>(context, listen: false);
var env = const String.fromEnvironment('ENV', defaultValue: 'dev'); // var env = const String.fromEnvironment('ENV', defaultValue: 'dev');
if (kDebugMode) { // if (kDebugMode) {
print('env :$env'); // print('env :$env');
} // }
DevEV.instance.setEnvironment( // DevEV.instance.setEnvironment(
context, // context,
environment: env == 'dev', // environment: env == 'dev',
); // );
Future.delayed(const Duration(milliseconds: 1000), () async { Future.delayed(const Duration(milliseconds: 1000), () async {
await initialAll(); await initialAll();
if (!await userProvider.init()) { if (!await userProvider.init()) {

@ -12,6 +12,7 @@ import 'package:provider/provider.dart';
import '../../base/base_style.dart'; import '../../base/base_style.dart';
import '../../constants/api.dart'; import '../../constants/api.dart';
import '../../constants/environment/environment.dart';
import '../../model/network/api_client.dart'; import '../../model/network/api_client.dart';
import '../../providers/user_provider.dart'; import '../../providers/user_provider.dart';
import '../../utils/toast/cloud_toast.dart'; import '../../utils/toast/cloud_toast.dart';
@ -54,14 +55,14 @@ class _LoginPageState extends State<LoginPage> {
_phoneController = TextEditingController(); _phoneController = TextEditingController();
_smsCodeController = TextEditingController(); _smsCodeController = TextEditingController();
final userProvider = Provider.of<UserProvider>(context, listen: false); final userProvider = Provider.of<UserProvider>(context, listen: false);
// var env = const String.fromEnvironment('ENV', defaultValue: 'dev'); var env = const String.fromEnvironment('ENV', defaultValue: 'dev');
// if (kDebugMode) { if (kDebugMode) {
// print('env :$env'); print('env :$env');
// } }
// DevEV.instance.setEnvironment( DevEV.instance.setEnvironment(
// context, context,
// environment: env == 'dev', environment: env == 'dev',
// ); );
} }
@override @override

@ -5,8 +5,7 @@ import 'package:flustars/flustars.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/tab_navigator.dart';
import 'package:project_telephony/ui/user/user_page.dart';
import 'package:project_telephony/ui/widget/check_radio.dart'; import 'package:project_telephony/ui/widget/check_radio.dart';
import 'package:project_telephony/ui/widget/plone_back_button.dart'; import 'package:project_telephony/ui/widget/plone_back_button.dart';
@ -34,11 +33,11 @@ List<dynamic>? data;
final List<ChooseItems> _piceList = [ final List<ChooseItems> _piceList = [
ChooseItems( ChooseItems(
month: 12, month: 12,
pice: 0.1, pice: 99,
), ),
ChooseItems( ChooseItems(
month: 1, month: 1,
pice: 0.01, pice: 10,
), ),
]; ];
ChooseItems? _chooseItem = _piceList[0]; ChooseItems? _chooseItem = _piceList[0];
@ -52,7 +51,7 @@ List payWay = [
]; ];
class _MembersPageState extends State<MembersPage> { class _MembersPageState extends State<MembersPage> {
double nowPrice = 0.01; double nowPrice = 10;
final EasyRefreshController _easyRefreshController = EasyRefreshController(); final EasyRefreshController _easyRefreshController = EasyRefreshController();
@override @override

@ -124,6 +124,7 @@ class _UserPageState extends State<UserPage> {
if (UserTool.userProvider.isLogin) { if (UserTool.userProvider.isLogin) {
// var res=await apiClient.request(API.app.trialVip); // var res=await apiClient.request(API.app.trialVip);
//01
if (UserTool.userProvider.userInfo.isTrial != 1) { if (UserTool.userProvider.userInfo.isTrial != 1) {
showDialog( showDialog(
context: context, context: context,

@ -1,10 +1,7 @@
import 'dart:ffi';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:flutter_easyrefresh/easy_refresh.dart';
import 'package:project_telephony/base/base_style.dart';
import 'package:project_telephony/ui/widget/plone_bottom.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:project_telephony/utils/user_tool.dart';

@ -15,7 +15,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion. # In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
# Read more about iOS versioning at # Read more about iOS versioning at
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
version: 1.0.1+2 version: 2.0.0+2
environment: environment:
sdk: ">=2.16.0 <3.0.0" sdk: ">=2.16.0 <3.0.0"

Loading…
Cancel
Save