refactor(linter): Перейти на friflex_linter, обновить правила

This commit is contained in:
PetrovY
2025-05-28 16:38:56 +03:00
parent 31507ae230
commit c6d4700892
61 changed files with 691 additions and 366 deletions

View File

@@ -5,7 +5,7 @@ import 'package:friflex_starter/features/debug/debug_routes.dart';
import 'package:go_router/go_router.dart';
class DebugScreen extends StatelessWidget {
const DebugScreen({Key? key}) : super(key: key);
const DebugScreen({super.key});
@override
Widget build(BuildContext context) {
@@ -15,9 +15,7 @@ class DebugScreen extends StatelessWidget {
child: ListView(
padding: const EdgeInsets.all(16),
children: [
Text(
'Окружение: ${context.di.appConfig.env.name}',
),
Text('Окружение: ${context.di.appConfig.env.name}'),
const HBox(22),
Text(
'Реализация AppServices: ${context.di.services.secureStorage.nameImpl}',

View File

@@ -12,9 +12,7 @@ class IconsScreen extends StatelessWidget {
@override
Widget build(BuildContext context) {
final iconList = Assets.icons.values
.map(
(icon) => _ItemIcon(icon: icon.svg(), name: icon.path),
)
.map((icon) => _ItemIcon(icon: icon.svg(), name: icon.path))
.toList();
return Scaffold(
appBar: AppBar(title: const Text('Иконки')),

View File

@@ -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}'),
],
),
),

View File

@@ -29,9 +29,7 @@ class ThemeScreen extends StatelessWidget {
child: const SizedBox(height: 100, width: 100),
),
const SizedBox(height: 16),
Text(
'Текущая тема: ${context.theme.themeMode}',
),
Text('Текущая тема: ${context.theme.themeMode}'),
],
),
),

View File

@@ -15,13 +15,9 @@ class TokensScreen extends StatelessWidget {
child: ListView(
padding: const EdgeInsets.all(16),
children: const [
Text(
'Access Token: ',
),
Text('Access Token: '),
SizedBox(height: 16),
Text(
'Refresh Token: ',
),
Text('Refresh Token: '),
SizedBox(height: 16),
],
),

View File

@@ -11,16 +11,12 @@ class UiKitScreen extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: const Text('UI Kit Screen'),
),
appBar: AppBar(title: const Text('UI Kit Screen')),
body: Center(
child: ListView(
padding: const EdgeInsets.all(16),
children: const [
Text(
'UI Kit Screen',
),
Text('UI Kit Screen'),
SizedBox(height: 16),
// Здесь можно добавить другие компоненты UI Kit
],