Skip to content

Commit

Permalink
fix: code style issues
Browse files Browse the repository at this point in the history
  • Loading branch information
HofmannZ committed Aug 20, 2020
1 parent 141ae3f commit 422380d
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion lib/src/dialog/device_info_dialog_android.dart
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class DeviceInfoDialogAndroid extends StatelessWidget {
return Container();
}

AndroidDeviceInfo device = snapshot.data;
final device = snapshot.data;

return SingleChildScrollView(
child: Column(
Expand Down
2 changes: 1 addition & 1 deletion lib/src/dialog/device_info_dialog_ios.dart
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class DeviceInfoDialogIOS extends StatelessWidget {
return Container();
}

IosDeviceInfo device = snapshot.data;
final device = snapshot.data;

return SingleChildScrollView(
child: Column(
Expand Down
4 changes: 2 additions & 2 deletions lib/src/utils/device_utils.dart
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@ class DeviceUtils {
}

static Future<AndroidDeviceInfo> androidDeviceInfo() async {
DeviceInfoPlugin plugin = DeviceInfoPlugin();
final plugin = DeviceInfoPlugin();

return plugin.androidInfo;
}

static Future<IosDeviceInfo> iosDeviceInfo() async {
DeviceInfoPlugin plugin = DeviceInfoPlugin();
final plugin = DeviceInfoPlugin();

return plugin.iosInfo;
}
Expand Down
2 changes: 1 addition & 1 deletion lib/src/utils/string_utils.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ class StringUtils {
static String enumName(
String enumToString,
) {
List<String> paths = enumToString.split(".");
final paths = enumToString.split('.');

return paths[paths.length - 1];
}
Expand Down

0 comments on commit 422380d

Please sign in to comment.