Skip to content

Commit

Permalink
chore: fix padding value presentation on example app
Browse files Browse the repository at this point in the history
  • Loading branch information
jokerttu committed Dec 10, 2024
1 parent 8e7c566 commit c071e99
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions example/lib/pages/navigation.dart
Original file line number Diff line number Diff line change
Expand Up @@ -1501,55 +1501,59 @@ class _NavigationPageState extends ExamplePageState<NavigationPage> {
_trafficIndicentCardsEnabled = newValue;
});
}),
Text('Map left padding: ${_mapPadding.left}'),
Text(
'Map left padding: ${_mapPadding.left.toStringAsFixed(0)}'),
Slider(
value: _mapPadding.left.toDouble(),
min: 0,
max: 200,
divisions: 20,
label: _mapPadding.left.toString(),
label: _mapPadding.left.toStringAsFixed(0),
onChanged: (double value) {
_setPadding(EdgeInsets.only(
top: _mapPadding.top,
left: value,
bottom: _mapPadding.bottom,
right: _mapPadding.right));
}),
Text('Map right padding: ${_mapPadding.right}'),
Text(
'Map right padding: ${_mapPadding.right.toStringAsFixed(0)}'),
Slider(
value: _mapPadding.right.toDouble(),
min: 0,
max: 200,
divisions: 20,
label: _mapPadding.right.toString(),
label: _mapPadding.right.toStringAsFixed(0),
onChanged: (double value) {
_setPadding(EdgeInsets.only(
top: _mapPadding.top,
left: _mapPadding.left,
bottom: _mapPadding.bottom,
right: value));
}),
Text('Map top padding: ${_mapPadding.top}'),
Text(
'Map top padding: ${_mapPadding.top.toStringAsFixed(0)}'),
Slider(
value: _mapPadding.top.toDouble(),
min: 0,
max: 200,
divisions: 20,
label: _mapPadding.top.toString(),
label: _mapPadding.top.toStringAsFixed(0),
onChanged: (double value) {
_setPadding(EdgeInsets.only(
top: value,
left: _mapPadding.left,
bottom: _mapPadding.bottom,
right: _mapPadding.right));
}),
Text('Map bottom padding: ${_mapPadding.bottom}'),
Text(
'Map bottom padding: ${_mapPadding.bottom.toStringAsFixed(0)}'),
Slider(
value: _mapPadding.bottom.toDouble(),
min: 0,
max: 200,
divisions: 20,
label: _mapPadding.bottom.toString(),
label: _mapPadding.bottom.toStringAsFixed(0),
onChanged: (double value) {
_setPadding(EdgeInsets.only(
top: _mapPadding.top,
Expand Down

0 comments on commit c071e99

Please sign in to comment.