提交更改

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

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

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

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

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

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

@ -1,10 +1,7 @@
import 'dart:ffi';
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/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.
# Read more about iOS versioning at
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
version: 1.0.1+2
version: 2.0.0+2
environment:
sdk: ">=2.16.0 <3.0.0"

Loading…
Cancel
Save