refactor(analyzer): add ignore JsonKey

This commit is contained in:
mso7nueh
2024-06-19 14:03:20 +03:00
parent dd6e343736
commit 7329c5747f
4 changed files with 16 additions and 56 deletions

View File

@@ -1,4 +1,6 @@
analyzer:
errors:
invalid_annotation_target: ignore
plugins:
- dart_code_metrics

View File

@@ -76,52 +76,6 @@ class ChatSelectScreen extends StatelessWidget {
}
}
_buildScreen(BuildContext context, ChatSelectLoadedState state) {
return Scaffold(
resizeToAvoidBottomInset: false,
body: Container(
width: double.maxFinite,
decoration: AppDecoration.fillGray,
child: ListView(
children: [
SizedBox(height: 30.v),
Container(
margin: EdgeInsets.only(
left: 16.h,
right: 20.h,
bottom: 10.h,
),
padding: EdgeInsets.all(12.h),
decoration: BoxDecoration(
color: Colors.white,
borderRadius: const BorderRadius.all(Radius.circular(12)),
boxShadow: [
BoxShadow(
color: Colors.grey.withOpacity(0.5),
spreadRadius: 2,
blurRadius: 5,
offset: Offset(0, 3),
),
],
),
child: Column(
mainAxisSize: MainAxisSize.min,
children: [
CustomSearchView(
controller: state.searchController,
hintText: "Поиск",
),
SizedBox(height: 20.v),
_buildChatList(context, state),
],
),
)
],
),
),
);
}
_buildChatList(BuildContext context, ChatSelectLoadedState state) {
return ListView.separated(
padding: EdgeInsets.all(16),

View File

@@ -7,7 +7,7 @@ part 'chat_service.g.dart';
@RestApi()
abstract class ChatService {
factory ChatService(Dio dio) = _ChatService;
factory ChatService(Dio dio, {String baseUrl}) = _ChatService;
@GET('/chat/show/{id}')
Future<Map<String, ChatRoomModel>> getChatRoomModel(@Path() String id);

View File

@@ -1,13 +1,17 @@
name: eatvio_app
description: A new Flutter project.
version: 0.0.0+1
environment:
sdk: '>=3.3.4 <4.0.0'
dependencies:
flutter:
sdk: flutter
flutter_localizations:
sdk: flutter
flutter_bloc: ^8.0.0
connectivity_plus: ^5.0.2
shared_preferences: ^2.0.15
@@ -45,7 +49,7 @@ dependencies:
dev_dependencies:
dart_code_metrics: ^5.7.6
dart_code_metrics_presets: ^1.8.0
build_runner: ^2.4.9
build_runner: ^2.4.11
freezed: ^2.5.2
json_serializable: ^6.8.0
retrofit_generator: ^8.1.0