Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

修复在Flutter 2.2.3中的问题,更新后台API接口地址。 #14

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/constant/app_urls.dart
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

class AppUrls{
// static const String BASE_URL='http://192.168.190.98:8082/wx'; //测试服务
static const String BASE_URL = 'http://120.25.226.11:8080/mall-app/wx';//线上服务
static const String BASE_URL = 'http://192.168.50.206:8080/wx';//线上服务
static const String HOME_URL=BASE_URL+'/home/index';//首页数据
static const String BANNER_URL = BASE_URL + '/home/banner'; //获取首页banner图
static const String CATEGORY_URL = BASE_URL + '/home/categories'; //获取首页分类
Expand Down
2 changes: 1 addition & 1 deletion lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class MallApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
locale: DevicePreview.of(context).locale,
locale: DevicePreview.locale(context),
// <--- /!\ Add the locale
builder: DevicePreview.appBuilder,
// <--- /!\ Add the builder
Expand Down
2 changes: 1 addition & 1 deletion lib/ui/page/home/tab_mine_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class _TabMinePageState extends State<TabMinePage> {
return Stack(children: [
Container(
height: ScreenUtil().setHeight(AppDimens.DIMENS_600) +
MediaQuery.of(context).padding.top,
MediaQuery.maybeOf(context).padding.top,
decoration: BoxDecoration(
gradient: LinearGradient(
colors: [AppColors.COLOR_FFB24E, AppColors.COLOR_FF5722]),
Expand Down
6 changes: 3 additions & 3 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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: 2.0.0
version: 2.2.3

environment:
sdk: ">=2.7.0 <3.0.0"
Expand All @@ -41,12 +41,12 @@ dependencies:
flutter_widget_from_html_core: ^0.4.1
tuple: ^1.0.3
flutter_html: ^0.10.4
city_pickers: ^0.1.30
city_pickers: ^1.0.1
flutter_slidable: ^0.5.7
flutter_webview_plugin: ^0.3.11
common_utils: ^1.2.1
event_bus: ^1.1.1
device_preview: ^0.4.8
device_preview: ^0.6.2-beta
dev_dependencies:
flutter_test:
sdk: flutter
Expand Down