Skip to content

Commit

Permalink
Remove useless Settings screen and button.
Browse files Browse the repository at this point in the history
  • Loading branch information
CaramelDunes committed Aug 26, 2021
1 parent aa98a89 commit 522d15f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 28 deletions.
14 changes: 1 addition & 13 deletions lib/map/map_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ import '../instruments_data_source.dart';
import '../over_cities_screen.dart';
import '../navigation_data_source.dart';
import '../navigation_info.dart';
import '../settings_screen.dart';

class MapScreen extends StatefulWidget {
@override
Expand All @@ -37,7 +36,7 @@ class _MapScreenState extends State<MapScreen> {
Wakelock.enable();

_instrumentsDataSource =
InstrumentsDataSource(qnh: 1022.0, surfaceAltitudeInM: 104);
InstrumentsDataSource(qnh: 1013.25, surfaceAltitudeInM: 0);

_routeManager = RouteManager(instrumentsDataSource: _instrumentsDataSource);

Expand Down Expand Up @@ -155,17 +154,6 @@ class _MapScreenState extends State<MapScreen> {
}
},
),
IconButton(
icon: Icon(Icons.settings, color: Colors.white),
tooltip: 'Settings',
color: _navigationDataSource != null ? Colors.green : null,
onPressed: () {
Navigator.push(
context,
MaterialPageRoute(
builder: (context) => SettingsScreen()));
},
)
],
),
if (_navigationDataSource != null)
Expand Down
15 changes: 0 additions & 15 deletions lib/settings_screen.dart

This file was deleted.

0 comments on commit 522d15f

Please sign in to comment.