search_picker 1.0.0+1

search_picker #

A new Flutter application.

Getting Started #

This project is a starting point for a Flutter application.

A few resources to get you started if this is your first Flutter project:

For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:


dependencies:
  search_picker: ^1.0.0+1

2. Install it

You can install packages from the command line:

with Flutter:


$ flutter pub get

Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:


import 'package:search_picker/main.dart';
import 'package:search_picker/SearchPickerDialog.dart';
import 'package:search_picker/SearchPicker.dart';
  
Popularity:
Describes how popular the package is relative to other packages. [more]
9
Health:
Code health derived from static analysis. [more]
96
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
50
Overall:
Weighted score of the above. [more]
43
Learn more about scoring.

We analyzed this package on Oct 11, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.5.1
  • pana: 0.12.21
  • Flutter: 1.9.1+hotfix.4

Platforms

Detected platforms: Flutter

References Flutter, and has no conflicting libraries.

Health suggestions

Fix lib/SearchPicker.dart. (-1.99 points)

Analysis of lib/SearchPicker.dart reported 4 hints:

line 5 col 7: This class (or a class which this class inherits from) is marked as '@immutable', but one or more of its instance fields are not final: SearchPickerView.allItems, SearchPickerView._CallBackFunction, SearchPickerView.pickerTitle, SearchPickerView.color, SearchPickerView.icon, SearchPickerView.selectedItem, SearchPickerView.selectedIndex

line 7 col 12: Name non-constant identifiers using lowerCamelCase.

line 25 col 7: Name types using UpperCamelCase.

line 29 col 12: Name non-constant identifiers using lowerCamelCase.

Fix lib/SearchPickerDialog.dart. (-1.99 points)

Analysis of lib/SearchPickerDialog.dart reported 4 hints:

line 3 col 7: This class (or a class which this class inherits from) is marked as '@immutable', but one or more of its instance fields are not final: SearchPickerDialog.dataToBind, SearchPickerDialog._callBackFunction, SearchPickerDialog.color

line 22 col 7: This class (or a class which this class inherits from) is marked as '@immutable', but one or more of its instance fields are not final: MySreachPicker.dataToBind, MySreachPicker._callBackFunction, MySreachPicker.color

line 40 col 17: Don't explicitly initialize variables to null.

line 50 col 9: Name non-constant identifiers using lowerCamelCase.

Fix lib/main.dart. (-0.50 points)

Analysis of lib/main.dart reported 1 hint:

line 42 col 3: This function has a return type of 'Widget', but doesn't end with a return statement.

Maintenance issues and suggestions

Provide a file named CHANGELOG.md. (-20 points)

Changelog entries help developers follow the progress of your package. See the example generated by stagehand.

The package description is too short. (-20 points)

Add more detail to the description field of pubspec.yaml. Use 60 to 180 characters to describe the package, what it does, and its target use case.

Maintain an example. (-10 points)

Create a short demo in the example/ directory to show how to use this package.

Common filename patterns include main.dart, example.dart, and search_picker.dart. Packages with multiple examples should provide example/README.md.

For more information see the pub package layout conventions.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.1.0 <3.0.0
cupertino_icons ^0.1.2 0.1.2
flutter 0.0.0
Transitive dependencies
collection 1.14.11 1.14.12
meta 1.1.7
sky_engine 0.0.99
typed_data 1.1.6
vector_math 2.0.8
Dev dependencies
flutter_test