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",
|
||||
"mediumAccuracyLabel": "Medium",
|
||||
"lowAccuracyLabel": "Low",
|
||||
"intervalLabel": "Frequency",
|
||||
"distanceLabel": "Distance",
|
||||
"intervalLabel": "Interval (seconds)",
|
||||
"distanceLabel": "Distance (meters)",
|
||||
"bufferLabel": "Offline buffering",
|
||||
"trackingLabel": "Continuous tracking",
|
||||
"startAction": "Start service",
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
import 'dart:io';
|
||||
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter/services.dart';
|
||||
import 'package:flutter_gen/gen_l10n/app_localizations.dart';
|
||||
|
|
@ -122,7 +124,8 @@ class _SettingsScreenState extends State<SettingsScreen> {
|
|||
_buildListTile(AppLocalizations.of(context)!.urlLabel, Preferences.url, false),
|
||||
_buildAccuracyListTile(),
|
||||
_buildListTile(AppLocalizations.of(context)!.distanceLabel, Preferences.distance, true),
|
||||
_buildListTile(AppLocalizations.of(context)!.intervalLabel, Preferences.interval, true),
|
||||
if (Platform.isAndroid && Preferences.instance.getInt(Preferences.distance) == 0)
|
||||
_buildListTile(AppLocalizations.of(context)!.intervalLabel, Preferences.interval, true),
|
||||
SwitchListTile(
|
||||
title: Text(AppLocalizations.of(context)!.bufferLabel),
|
||||
value: buffering,
|
||||
|
|
|
|||
|
|
@ -52,7 +52,13 @@ class _StatusScreenState extends State<StatusScreen> {
|
|||
itemCount: _logs.length,
|
||||
itemBuilder: (_, index) => Padding(
|
||||
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