cleanup constants
This commit is contained in:
parent
ed85908834
commit
61d980add2
|
@ -34,7 +34,7 @@ part 'display.g.dart';
|
||||||
@immutable
|
@immutable
|
||||||
class Display {
|
class Display {
|
||||||
Display({
|
Display({
|
||||||
this.languageCode = Constants.defaultLocale,
|
this.languageCode,
|
||||||
this.standardNotationEnabled = true,
|
this.standardNotationEnabled = true,
|
||||||
this.isPieceCountInHandShown = true,
|
this.isPieceCountInHandShown = true,
|
||||||
this.isNotationsShown = false,
|
this.isNotationsShown = false,
|
||||||
|
|
|
@ -24,7 +24,6 @@ import 'package:sanmill/models/color.dart';
|
||||||
import 'package:sanmill/models/display.dart';
|
import 'package:sanmill/models/display.dart';
|
||||||
import 'package:sanmill/services/language_info.dart';
|
import 'package:sanmill/services/language_info.dart';
|
||||||
import 'package:sanmill/services/storage/storage.dart';
|
import 'package:sanmill/services/storage/storage.dart';
|
||||||
import 'package:sanmill/shared/constants.dart';
|
|
||||||
import 'package:sanmill/shared/list_item_divider.dart';
|
import 'package:sanmill/shared/list_item_divider.dart';
|
||||||
import 'package:sanmill/shared/settings/settings_card.dart';
|
import 'package:sanmill/shared/settings/settings_card.dart';
|
||||||
import 'package:sanmill/shared/settings/settings_list_tile.dart';
|
import 'package:sanmill/shared/settings/settings_list_tile.dart';
|
||||||
|
@ -229,8 +228,7 @@ class PersonalizationSettingsPage extends StatelessWidget {
|
||||||
children: <Widget>[
|
children: <Widget>[
|
||||||
SettingsListTile(
|
SettingsListTile(
|
||||||
titleString: S.of(context).language,
|
titleString: S.of(context).language,
|
||||||
trailingString: LocalDatabaseService.display.languageCode !=
|
trailingString: LocalDatabaseService.display.languageCode != null
|
||||||
Constants.defaultLocale
|
|
||||||
? languageCodeToStrings[_display.languageCode]
|
? languageCodeToStrings[_display.languageCode]
|
||||||
: '',
|
: '',
|
||||||
onTap: () => showDialog(
|
onTap: () => showDialog(
|
||||||
|
|
|
@ -32,8 +32,6 @@ class Constants {
|
||||||
"assets/files/environment_variables.txt";
|
"assets/files/environment_variables.txt";
|
||||||
static const String gplLicenseFilename = "assets/licenses/GPL-3.0.txt";
|
static const String gplLicenseFilename = "assets/licenses/GPL-3.0.txt";
|
||||||
|
|
||||||
static const Locale? defaultLocale = null;
|
|
||||||
|
|
||||||
static const String feedbackSubjectPrefix = "[$appName] $projectName ";
|
static const String feedbackSubjectPrefix = "[$appName] $projectName ";
|
||||||
static const String feedbackSubjectSuffix = " Feedback";
|
static const String feedbackSubjectSuffix = " Feedback";
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue