Skip to content

Commit

Permalink
dart fix
Browse files Browse the repository at this point in the history
  • Loading branch information
bartekpacia committed Mar 30, 2024
1 parent e960761 commit 051d847
Show file tree
Hide file tree
Showing 9 changed files with 16 additions and 16 deletions.
4 changes: 2 additions & 2 deletions packages/location/example/lib/enable_in_background.dart
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,9 @@ class _EnableInBackgroundState extends State<EnableInBackgroundWidget> {
ElevatedButton(
onPressed: _enabled == null ? null : _toggleBackgroundMode,
child: Text(_enabled ?? false ? 'Disable' : 'Enable'),
)
),
],
)
),
],
);
}
Expand Down
2 changes: 1 addition & 1 deletion packages/location/example/lib/get_location.dart
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ class _GetLocationState extends State<GetLocationWidget> {
color: Colors.white,
)
: const Text('Get'),
)
),
],
),
],
Expand Down
2 changes: 1 addition & 1 deletion packages/location/example/lib/listen_location.dart
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ class _ListenLocationState extends State<ListenLocationWidget> {
ElevatedButton(
onPressed: _locationSubscription != null ? _stopListen : null,
child: const Text('Stop'),
)
),
],
),
],
Expand Down
4 changes: 2 additions & 2 deletions packages/location/example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ class _MyHomePageState extends State<MyHomePage> {
IconButton(
icon: const Icon(Icons.info_outline),
onPressed: _showInfoDialog,
)
),
],
),
body: SingleChildScrollView(
Expand All @@ -108,7 +108,7 @@ class _MyHomePageState extends State<MyHomePage> {
const Divider(height: 32),
const EnableInBackgroundWidget(),
const Divider(height: 32),
const ChangeNotificationWidget()
const ChangeNotificationWidget(),
],
),
),
Expand Down
4 changes: 2 additions & 2 deletions packages/location/example/lib/permission_status.dart
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@ class _PermissionStatusState extends State<PermissionStatusWidget> {
? null
: _requestPermission,
child: const Text('Request'),
)
),
],
)
),
],
);
}
Expand Down
4 changes: 2 additions & 2 deletions packages/location/example/lib/service_enabled.dart
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@ class _ServiceEnabledState extends State<ServiceEnabledWidget> {
ElevatedButton(
onPressed: (_serviceEnabled ?? false) ? null : _requestService,
child: const Text('Request'),
)
),
],
)
),
],
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class MethodChannelLocation extends LocationPlatform {
<String, dynamic>{
'accuracy': accuracy!.index,
'interval': interval,
'distanceFilter': distanceFilter
'distanceFilter': distanceFilter,
},
);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ void main() {
arguments: <String, dynamic>{
'accuracy': LocationAccuracy.high.index,
'interval': 1000,
'distanceFilter': 0
'distanceFilter': 0,
},
),
]);
Expand Down
8 changes: 4 additions & 4 deletions packages/location_platform_interface/test/types_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ void main() {
'speed': 2.0,
'speed_accuracy': 2.0,
'heading': 2.0,
'time': 2.0
'time': 2.0,
});
final otherLocationData = LocationData.fromMap(<String, dynamic>{
'latitude': 42.0,
Expand All @@ -33,7 +33,7 @@ void main() {
'speed': 2.0,
'speed_accuracy': 2.0,
'heading': 2.0,
'time': 2.0
'time': 2.0,
});

expect(otherLocationData == locationData, true);
Expand All @@ -49,7 +49,7 @@ void main() {
'speed': 2.0,
'speed_accuracy': 2.0,
'heading': 2.0,
'time': 2.0
'time': 2.0,
});
final otherLocationData = LocationData.fromMap(<String, dynamic>{
'latitude': 42.0,
Expand All @@ -59,7 +59,7 @@ void main() {
'speed': 2.0,
'speed_accuracy': 2.0,
'heading': 2.0,
'time': 2.0
'time': 2.0,
});

expect(otherLocationData == locationData, false);
Expand Down

0 comments on commit 051d847

Please sign in to comment.