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