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:
$ 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';
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
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
Detected platforms: Flutter
References Flutter, and has no conflicting libraries.
lib/SearchPicker.dart. (-1.99 points)
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.
lib/SearchPickerDialog.dart. (-1.99 points)
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.
lib/main.dart. (-0.50 points)
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
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
search_picker.dart. Packages with multiple examples should provide
For more information see the pub package layout conventions.