enable lint prefer_single_quotes (#12665)
This commit is contained in:
committed by
GitHub
parent
b07ea41954
commit
1fce14a31c
@@ -27,7 +27,7 @@ class _PlatformChannelState extends State<PlatformChannel> {
|
||||
final int result = await methodChannel.invokeMethod('getBatteryLevel');
|
||||
batteryLevel = 'Battery level: $result%.';
|
||||
} on PlatformException {
|
||||
batteryLevel = "Failed to get battery level.";
|
||||
batteryLevel = 'Failed to get battery level.';
|
||||
}
|
||||
setState(() {
|
||||
_batteryLevel = batteryLevel;
|
||||
@@ -49,7 +49,7 @@ class _PlatformChannelState extends State<PlatformChannel> {
|
||||
|
||||
void _onError(PlatformException error) {
|
||||
setState(() {
|
||||
_chargingStatus = "Battery status: unknown.";
|
||||
_chargingStatus = 'Battery status: unknown.';
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user