mirror of
https://github.com/smmarty/friflex_flutter_starter.git
synced 2026-02-05 11:42:17 +00:00
refactor(linter): Перейти на friflex_linter, обновить правила
This commit is contained in:
@@ -22,18 +22,14 @@ class LangScreen extends StatelessWidget {
|
||||
const SizedBox(height: 16),
|
||||
ElevatedButton(
|
||||
onPressed: () {
|
||||
context.localization.changeLocal(
|
||||
const Locale('ru', 'RU'),
|
||||
);
|
||||
context.localization.changeLocal(const Locale('ru', 'RU'));
|
||||
},
|
||||
child: const Text('Сменить язык на Rусский'),
|
||||
),
|
||||
const SizedBox(height: 16),
|
||||
ElevatedButton(
|
||||
onPressed: () {
|
||||
context.localization.changeLocal(
|
||||
const Locale('en', 'EN'),
|
||||
);
|
||||
context.localization.changeLocal(const Locale('en', 'EN'));
|
||||
},
|
||||
child: const Text('Сменить язык на Английский'),
|
||||
),
|
||||
@@ -54,9 +50,7 @@ class LangScreen extends StatelessWidget {
|
||||
),
|
||||
),
|
||||
const SizedBox(height: 16),
|
||||
Text(
|
||||
'Текущий язык: ${context.l10n.localeName}',
|
||||
),
|
||||
Text('Текущий язык: ${context.l10n.localeName}'),
|
||||
],
|
||||
),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user