Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
ashishrawat2911 committed Aug 4, 2022
1 parent 36eeaab commit 417567d
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 31 deletions.
32 changes: 5 additions & 27 deletions analysis_options.yaml
Original file line number Diff line number Diff line change
@@ -1,29 +1,7 @@
# This file configures the analyzer, which statically analyzes Dart code to
# check for errors, warnings, and lints.
#
# The issues identified by the analyzer are surfaced in the UI of Dart-enabled
# IDEs (https://dart.dev/tools#ides-and-editors). The analyzer can also be
# invoked from the command line by running `flutter analyze`.

# The following line activates a set of recommended lints for Flutter apps,
# packages, and plugins designed to encourage good coding practices.
include: package:flutter_lints/flutter.yaml

analyzer:
exclude:
- lib/**.g.dart
- lib/**.freezed.dart
linter:
# The lint rules applied to this project can be customized in the
# section below to disable rules from the `package:flutter_lints/flutter.yaml`
# included above or to enable additional rules. A list of all available lints
# and their documentation is published at
# https://dart-lang.github.io/linter/lints/index.html.
#
# Instead of disabling a lint rule for the entire project in the
# section below, it can also be suppressed for a single line of code
# or a specific dart file by using the `// ignore: name_of_lint` and
# `// ignore_for_file: name_of_lint` syntax on the line or in the file
# producing the lint.
rules:
# avoid_print: false # Uncomment to disable the `avoid_print` rule
# prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule

# Additional information about this file can be found at
# https://dart.dev/guides/language/analysis-options
rules:
2 changes: 1 addition & 1 deletion lib/core/extention/list_extentions.dart
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
extension ListExt<T, E> on List<E> {
extension ListExt<E> on List<E> {
List<T> mapToList<T>(T Function(E e) toElement) => map<T>(toElement).toList();
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import 'package:cached_network_image/cached_network_image.dart';
import 'package:flutter/material.dart';
import 'package:popular_movies/core/extention/movie_db_image_extention.dart';
import 'package:popular_movies/domain/model/movie.dart';
import 'package:popular_movies/domain/model/movie_details.dart';
import 'package:popular_movies/presentation/features/movie_detail/state/movie_details_state.dart';
import 'package:popular_movies/presentation/features/movie_detail/view_model/movie_details_view_model.dart';
Expand Down
2 changes: 1 addition & 1 deletion pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ packages:
source: hosted
version: "1.1.0"
freezed_annotation:
dependency: transitive
dependency: "direct main"
description:
name: freezed_annotation
url: "https://pub.dartlang.org"
Expand Down
3 changes: 2 additions & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,13 @@ dependencies:
injectable: 1.5.3
get_it: 7.2.0
floor: 1.3.0
sqflite:
sqflite: 2.0.3
retrofit: 3.0.1+1
dio: 4.0.6
freezed: 1.1.0
cached_network_image: 3.2.1
connectivity_plus: 2.3.6
freezed_annotation: 1.1.0

dev_dependencies:
flutter_test:
Expand Down

0 comments on commit 417567d

Please sign in to comment.