Remove uses of deprecated constants and change int.parse to int.tryParse (#19575)
* Remove uses of deprecated constants * Change int.parse to int.tryParse where appropriate
This commit is contained in:
@@ -176,8 +176,8 @@ class FlutterProject {
|
||||
final File buildScript = new File(
|
||||
path.join(androidPath, 'app', 'build.gradle'),
|
||||
);
|
||||
// ignore: deprecated_member_use
|
||||
buildScript.openWrite(mode: FileMode.APPEND).write('''
|
||||
|
||||
buildScript.openWrite(mode: FileMode.append).write('''
|
||||
|
||||
android {
|
||||
buildTypes {
|
||||
@@ -193,8 +193,8 @@ android {
|
||||
final File buildScript = new File(
|
||||
path.join(androidPath, 'app', 'build.gradle'),
|
||||
);
|
||||
// ignore: deprecated_member_use
|
||||
buildScript.openWrite(mode: FileMode.APPEND).write('''
|
||||
|
||||
buildScript.openWrite(mode: FileMode.append).write('''
|
||||
|
||||
android {
|
||||
flavorDimensions "mode"
|
||||
|
||||
Reference in New Issue
Block a user