add support for network calculation from the calculator
All checks were successful
Release / meta (push) Successful in 1m39s
Release / linux-build (push) Successful in 1m55s
Release / web-build (push) Successful in 3m12s
Release / android-build (push) Successful in 6m48s
Release / release-master (push) Successful in 22s
Release / release-dev (push) Successful in 28s
All checks were successful
Release / meta (push) Successful in 1m39s
Release / linux-build (push) Successful in 1m55s
Release / web-build (push) Successful in 3m12s
Release / android-build (push) Successful in 6m48s
Release / release-master (push) Successful in 22s
Release / release-dev (push) Successful in 28s
This commit is contained in:
@@ -40,6 +40,7 @@ class RouteDetailsView extends StatelessWidget {
|
||||
final List<double> costs;
|
||||
final VoidCallback onBack;
|
||||
final Set<String> routingPoints;
|
||||
final VoidCallback? onNetworksPressed;
|
||||
|
||||
const RouteDetailsView({
|
||||
super.key,
|
||||
@@ -47,6 +48,7 @@ class RouteDetailsView extends StatelessWidget {
|
||||
required this.costs,
|
||||
required this.onBack,
|
||||
this.routingPoints = const {},
|
||||
this.onNetworksPressed,
|
||||
});
|
||||
|
||||
@override
|
||||
@@ -56,13 +58,21 @@ class RouteDetailsView extends StatelessWidget {
|
||||
final mutedColor = Theme.of(context).colorScheme.outlineVariant;
|
||||
return Column(
|
||||
children: [
|
||||
Align(
|
||||
alignment: Alignment.centerLeft,
|
||||
child: TextButton.icon(
|
||||
onPressed: onBack,
|
||||
icon: const Icon(Icons.arrow_back),
|
||||
label: const Text('Back'),
|
||||
),
|
||||
Row(
|
||||
children: [
|
||||
TextButton.icon(
|
||||
onPressed: onBack,
|
||||
icon: const Icon(Icons.arrow_back),
|
||||
label: const Text('Back'),
|
||||
),
|
||||
const Spacer(),
|
||||
if (onNetworksPressed != null)
|
||||
TextButton.icon(
|
||||
onPressed: onNetworksPressed,
|
||||
icon: const Icon(Icons.account_tree),
|
||||
label: const Text('Networks'),
|
||||
),
|
||||
],
|
||||
),
|
||||
Expanded(
|
||||
child: ListView.builder(
|
||||
|
||||
Reference in New Issue
Block a user