Skip to content

Commit

Permalink
Merge pull request letsar#198 from diegotori/null_safety
Browse files Browse the repository at this point in the history
Null Safety Stable Release Candidate
  • Loading branch information
letsar authored Apr 11, 2021
2 parents e196a30 + aee274a commit 39d3b49
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 18 deletions.
4 changes: 2 additions & 2 deletions example/android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ apply plugin: 'kotlin-android'
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"

android {
compileSdkVersion 28
compileSdkVersion 30

sourceSets {
main.java.srcDirs += 'src/main/kotlin'
Expand All @@ -40,7 +40,7 @@ android {
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
applicationId "com.example.example"
minSdkVersion 16
targetSdkVersion 28
targetSdkVersion 30
versionCode flutterVersionCode.toInteger()
versionName flutterVersionName
}
Expand Down
4 changes: 2 additions & 2 deletions example/android/build.gradle
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
buildscript {
ext.kotlin_version = '1.3.50'
ext.kotlin_version = '1.4.31'
repositories {
google()
jcenter()
}

dependencies {
classpath 'com.android.tools.build:gradle:3.5.0'
classpath 'com.android.tools.build:gradle:4.1.3'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
Expand Down
4 changes: 2 additions & 2 deletions example/android/gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Fri Jun 23 08:50:38 CEST 2017
#Sun Mar 21 00:17:22 EDT 2021
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.2-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-6.5-all.zip
16 changes: 8 additions & 8 deletions example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -193,13 +193,13 @@ class _MyHomePageState extends State<MyHomePage> {
title: Text('Delete'),
content: Text('Item will be deleted'),
actions: <Widget>[
FlatButton(
TextButton(
child: Text('Cancel'),
onPressed: () => Navigator.of(context)!.pop(false),
onPressed: () => Navigator.of(context).pop(false),
),
FlatButton(
TextButton(
child: Text('Ok'),
onPressed: () => Navigator.of(context)!.pop(true),
onPressed: () => Navigator.of(context).pop(true),
),
],
);
Expand Down Expand Up @@ -243,13 +243,13 @@ class _MyHomePageState extends State<MyHomePage> {
title: Text('Delete'),
content: Text('Item will be deleted'),
actions: <Widget>[
FlatButton(
TextButton(
child: Text('Cancel'),
onPressed: () => Navigator.of(context)!.pop(false),
onPressed: () => Navigator.of(context).pop(false),
),
FlatButton(
TextButton(
child: Text('Ok'),
onPressed: () => Navigator.of(context)!.pop(true),
onPressed: () => Navigator.of(context).pop(true),
),
],
);
Expand Down
4 changes: 2 additions & 2 deletions example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ publish_to: "none"
version: 1.0.0+1

environment:
sdk: ">=2.12.0-29.10.beta <3.0.0"
sdk: ">=2.12.0-0 <3.0.0"

dependencies:
flutter:
sdk: flutter

cupertino_icons: ^0.1.3
cupertino_icons: ^1.0.2
flutter_slidable:
path: ../

Expand Down
4 changes: 2 additions & 2 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ dependencies:
dev_dependencies:
flutter_test:
sdk: flutter
test: ^1.5.1
test: ^1.16.5

environment:
sdk: ">=2.12.0-29.10.beta <3.0.0"
sdk: ">=2.12.0-0 <3.0.0"

0 comments on commit 39d3b49

Please sign in to comment.