mirror of
https://github.com/zjs81/meshcore-open.git
synced 2026-07-06 16:56:41 +10:00
Merge pull request #372 from zjs81/group-elem
fix: settings dialog lists
This commit is contained in:
@@ -1062,25 +1062,25 @@ class AppSettingsScreen extends StatelessWidget {
|
|||||||
children: [
|
children: [
|
||||||
Text(context.l10n.appSettings_showNodesDiscoveredWithin),
|
Text(context.l10n.appSettings_showNodesDiscoveredWithin),
|
||||||
const SizedBox(height: 16),
|
const SizedBox(height: 16),
|
||||||
ListTile(
|
RadioListTile<double>(
|
||||||
title: Text(context.l10n.appSettings_allTime),
|
title: Text(context.l10n.appSettings_allTime),
|
||||||
leading: Radio<double>(value: 0),
|
value: 0,
|
||||||
),
|
),
|
||||||
ListTile(
|
RadioListTile<double>(
|
||||||
title: Text(context.l10n.appSettings_lastHour),
|
title: Text(context.l10n.appSettings_lastHour),
|
||||||
leading: Radio<double>(value: 1),
|
value: 1,
|
||||||
),
|
),
|
||||||
ListTile(
|
RadioListTile<double>(
|
||||||
title: Text(context.l10n.appSettings_last6Hours),
|
title: Text(context.l10n.appSettings_last6Hours),
|
||||||
leading: Radio<double>(value: 6),
|
value: 6,
|
||||||
),
|
),
|
||||||
ListTile(
|
RadioListTile<double>(
|
||||||
title: Text(context.l10n.appSettings_last24Hours),
|
title: Text(context.l10n.appSettings_last24Hours),
|
||||||
leading: Radio<double>(value: 24),
|
value: 24,
|
||||||
),
|
),
|
||||||
ListTile(
|
RadioListTile<double>(
|
||||||
title: Text(context.l10n.appSettings_lastWeek),
|
title: Text(context.l10n.appSettings_lastWeek),
|
||||||
leading: Radio<double>(value: 168),
|
value: 168,
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
@@ -1114,13 +1114,13 @@ class AppSettingsScreen extends StatelessWidget {
|
|||||||
child: Column(
|
child: Column(
|
||||||
mainAxisSize: MainAxisSize.min,
|
mainAxisSize: MainAxisSize.min,
|
||||||
children: [
|
children: [
|
||||||
ListTile(
|
RadioListTile<UnitSystem>(
|
||||||
title: Text(context.l10n.appSettings_unitsMetric),
|
title: Text(context.l10n.appSettings_unitsMetric),
|
||||||
leading: const Radio<UnitSystem>(value: UnitSystem.metric),
|
value: UnitSystem.metric,
|
||||||
),
|
),
|
||||||
ListTile(
|
RadioListTile<UnitSystem>(
|
||||||
title: Text(context.l10n.appSettings_unitsImperial),
|
title: Text(context.l10n.appSettings_unitsImperial),
|
||||||
leading: const Radio<UnitSystem>(value: UnitSystem.imperial),
|
value: UnitSystem.imperial,
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
|
|||||||
Reference in New Issue
Block a user