File tree Expand file tree Collapse file tree 8 files changed +41
-13
lines changed Expand file tree Collapse file tree 8 files changed +41
-13
lines changed Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ android {
4343 targetSdkVersion 28
4444 versionCode flutterVersionCode. toInteger()
4545 versionName flutterVersionName
46- testInstrumentationRunner " android.support .test.runner.AndroidJUnitRunner"
46+ testInstrumentationRunner " androidx .test.runner.AndroidJUnitRunner"
4747 }
4848
4949 buildTypes {
@@ -62,6 +62,6 @@ flutter {
6262dependencies {
6363 implementation " org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version "
6464 testImplementation ' junit:junit:4.12'
65- androidTestImplementation ' com.android.support. test:runner:1.0.2 '
66- androidTestImplementation ' com.android.support. test.espresso:espresso-core:3.0.2 '
65+ androidTestImplementation ' androidx. test:runner:1.1.1 '
66+ androidTestImplementation ' androidx. test.espresso:espresso-core:3.1.1 '
6767}
Original file line number Diff line number Diff line change 11buildscript {
2- ext. kotlin_version = ' 1.2.71 '
2+ ext. kotlin_version = ' 1.3.50 '
33 repositories {
44 google()
55 jcenter()
66 }
77
88 dependencies {
9- classpath ' com.android.tools.build:gradle:3.2.1 '
9+ classpath ' com.android.tools.build:gradle:3.5.0 '
1010 classpath " org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version "
1111 }
1212}
Original file line number Diff line number Diff line change 11org.gradle.jvmargs =-Xmx1536M
2-
32android.enableR8 =true
3+ android.useAndroidX =true
4+ android.enableJetifier =true
Original file line number Diff line number Diff line change @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
33distributionPath =wrapper/dists
44zipStoreBase =GRADLE_USER_HOME
55zipStorePath =wrapper/dists
6- distributionUrl =https\://services.gradle.org/distributions/gradle-4.10 .2-all.zip
6+ distributionUrl =https\://services.gradle.org/distributions/gradle-5.6 .2-all.zip
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ import 'package:flutter/material.dart';
22import 'package:flutter_app_sample/ui/base/AppCommonStatefulPage.dart' ;
33import 'package:flutter_app_sample/sample/MainSortListPage.dart' ;
44import 'package:flutter_app_sample/component/game/MainGamePage.dart' ;
5+ import 'package:url_launcher/url_launcher.dart' ;
56
67///主页面
78///
@@ -63,7 +64,11 @@ class MainPage extends AppCommonStatefulPage {
6364 List <Widget > _bottomNavigationWidgets = [
6465 _getListView (),
6566 Center (
66- child: Text ("Games" ),
67+ child: Column (
68+ children: < Widget > [
69+ Text ("Games" ),
70+ ],
71+ ),
6772 ),
6873 Center (
6974 child: Text ("TODO" ),
Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ class CardInfoPage extends AppCommonStatefulPage {
6262 trailing: Text ("描述:点击➕号来增加年龄值" ),
6363 ),
6464 ChangeNotifierProvider (
65- builder : (BuildContext context) => _cardModelBYNotifierProvider,
65+ create : (BuildContext context) => _cardModelBYNotifierProvider,
6666 child: Consumer <CardModelBYNotifierProvider >(
6767 builder: (context, cart, child) {
6868 return RaisedButton (
Original file line number Diff line number Diff line change 55import FlutterMacOS
66import Foundation
77
8+ import ai_barcode
9+ import url_launcher_macos
810
911func RegisterGeneratedPlugins( registry: FlutterPluginRegistry ) {
12+ AiBarcodePlugin . register ( with: registry. registrar ( forPlugin: " AiBarcodePlugin " ) )
13+ UrlLauncherPlugin . register ( with: registry. registrar ( forPlugin: " UrlLauncherPlugin " ) )
1014}
Original file line number Diff line number Diff line change @@ -23,12 +23,30 @@ dependencies:
2323 # The following adds the Cupertino Icons font to your application.
2424 # Use with the CupertinoIcons class for iOS style icons.
2525 cupertino_icons : ^0.1.2
26- fluttertoast : ^2 .1.1
27- dio : ^3.0.2
28- provider : ^3 .0.0
26+ fluttertoast : ^3 .1.3
27+ dio : ^3.0.8
28+ provider : ^4 .0.2
2929
3030 # Route package.
31- airoute : ^0.1.7
31+ airoute : ^0.1.8
32+
33+ # Barcode package.
34+ # ai_barcode: ^0.2.7
35+ ai_barcode :
36+ git :
37+ url : https://github.com/pdliuw/ai_barcode.git
38+
39+ # Http package.
40+ # ai_http: ^0.1.1
41+
42+ # url launch
43+ url_launcher : ^5.4.1
44+
45+ # preferences
46+ # shared_preferences: ^0.5.6
47+
48+ # video
49+ # video_player: ^0.10.5+2
3250
3351dev_dependencies :
3452 flutter_test :
You can’t perform that action at this time.
0 commit comments