flutter_useful_widgets 1.0.0

useful_widgets #

Useful widgets for speed up development process and reduce code boilerplate.

Widgets #

StreamParser<T - wrapper around StreamBuilder that provides a builder for each connection state. StreamParserConverter<S - wrapper around StreamBuilder that converts a stream of S to a stream of D. FutureParser<T - wrapper around FutureBuilder that provides a builder for each connection state. FutureParserConverter<S - wrapper around FutureBuilder that converts a future of S to a future of D. BottomSheetDialog - show a list of BottomSheetItem. HighlightedSearchText - show a list of TextQuery formatted on a given text. ImagePickerDialog - show image from network or file and when clicked it shows options to load from camera, gallery or delete current image if any. The real picker is chosen by the user on the onPickImage function, in the example project it was used the image_picker: ^0.6.1+8 you can used a package that feet your needs. MultiFloatingActionButton - show multiple FloatingAction with animations. MultiPages - wrapper around PageView that shows the pages indicator (a bar and a dot for each page with the current page highlighted). PopupMenu<T - easy to use PopupMenuButton with PopupItem<T and TextPopupItem. RefreshableListView<T - a ListView with RefreshIndicator and the onRefresh returns a List<T items. SearchView<T - provides functions to reduce boilerplate code and improve development time like: initialValues, fetchResults(query), resultsFilter(query, results), itemBuilder(context, item, query). TabsView - provides a scaffold with TabBar and TabView that are passed as a list of TabItem.

Getting Started #

This project was created by Edgar Wchua P. Guilherme (wchua043@gmail.com) as an open source project at gitlab. To understand how to use the widgets please check the examples.

[1.0.0] - Released at 15/02/2020.

  • This release contains 14 widgets, To understand how to use the widgets please check the examples.


example #

useful widgets examples

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:

  flutter_useful_widgets: ^1.0.0

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:flutter_useful_widgets/flutter_useful_widgets.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]
Learn more about scoring.

We analyzed this package on Feb 15, 2020, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.7.1
  • pana: 0.13.5
  • Flutter: 1.12.13+hotfix.7

Health suggestions

Fix lib/src/future_parser.dart. (-0.50 points)

Analysis of lib/src/future_parser.dart reported 1 hint:

line 161 col 14: Avoid using braces in interpolation when not needed.

Fix lib/src/stream_parser.dart. (-0.50 points)

Analysis of lib/src/stream_parser.dart reported 1 hint:

line 161 col 14: Avoid using braces in interpolation when not needed.

Format lib/flutter_useful_widgets.dart.

Run flutter format to format lib/flutter_useful_widgets.dart.

Format lib/src/clickable_text.dart.

Run flutter format to format lib/src/clickable_text.dart.

Format lib/src/refreshable_list_view.dart.

Run flutter format to format lib/src/refreshable_list_view.dart.


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