Minor improvements
This commit is contained in:
parent
6dbe061c3b
commit
74f1fe5475
3 changed files with 13 additions and 4 deletions
|
|
@ -14,8 +14,8 @@
|
||||||
"highAccuracyLabel": "High",
|
"highAccuracyLabel": "High",
|
||||||
"mediumAccuracyLabel": "Medium",
|
"mediumAccuracyLabel": "Medium",
|
||||||
"lowAccuracyLabel": "Low",
|
"lowAccuracyLabel": "Low",
|
||||||
"intervalLabel": "Frequency",
|
"intervalLabel": "Interval (seconds)",
|
||||||
"distanceLabel": "Distance",
|
"distanceLabel": "Distance (meters)",
|
||||||
"bufferLabel": "Offline buffering",
|
"bufferLabel": "Offline buffering",
|
||||||
"trackingLabel": "Continuous tracking",
|
"trackingLabel": "Continuous tracking",
|
||||||
"startAction": "Start service",
|
"startAction": "Start service",
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,5 @@
|
||||||
|
import 'dart:io';
|
||||||
|
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:flutter/services.dart';
|
import 'package:flutter/services.dart';
|
||||||
import 'package:flutter_gen/gen_l10n/app_localizations.dart';
|
import 'package:flutter_gen/gen_l10n/app_localizations.dart';
|
||||||
|
|
@ -122,6 +124,7 @@ class _SettingsScreenState extends State<SettingsScreen> {
|
||||||
_buildListTile(AppLocalizations.of(context)!.urlLabel, Preferences.url, false),
|
_buildListTile(AppLocalizations.of(context)!.urlLabel, Preferences.url, false),
|
||||||
_buildAccuracyListTile(),
|
_buildAccuracyListTile(),
|
||||||
_buildListTile(AppLocalizations.of(context)!.distanceLabel, Preferences.distance, true),
|
_buildListTile(AppLocalizations.of(context)!.distanceLabel, Preferences.distance, true),
|
||||||
|
if (Platform.isAndroid && Preferences.instance.getInt(Preferences.distance) == 0)
|
||||||
_buildListTile(AppLocalizations.of(context)!.intervalLabel, Preferences.interval, true),
|
_buildListTile(AppLocalizations.of(context)!.intervalLabel, Preferences.interval, true),
|
||||||
SwitchListTile(
|
SwitchListTile(
|
||||||
title: Text(AppLocalizations.of(context)!.bufferLabel),
|
title: Text(AppLocalizations.of(context)!.bufferLabel),
|
||||||
|
|
|
||||||
|
|
@ -52,7 +52,13 @@ class _StatusScreenState extends State<StatusScreen> {
|
||||||
itemCount: _logs.length,
|
itemCount: _logs.length,
|
||||||
itemBuilder: (_, index) => Padding(
|
itemBuilder: (_, index) => Padding(
|
||||||
padding: const EdgeInsets.symmetric(horizontal: 8.0),
|
padding: const EdgeInsets.symmetric(horizontal: 8.0),
|
||||||
child: Text(_logs[index]),
|
child: Text(
|
||||||
|
_logs[index],
|
||||||
|
style: TextStyle(
|
||||||
|
fontSize: 10,
|
||||||
|
fontFamily: 'monospace',
|
||||||
|
),
|
||||||
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue