weekday_selector_formfield 1.0.2

  • Readme
  • Changelog
  • Installing
  • new59

weekday_selector_formfield #

This widget allows the user to choose one or many weekdays. The selector is customizable and it has all the posibilities expected on a Form Field. Languages Availables: English, Spanish, Portuguese

Getting Started #

To use this package, you only need to install/import it to the project and then call it in the Widget's Build method.

Default View Example #

WeekDaySelectorFormField()

default.png

Custom Example #

You can set the 'displayDay' attribute to choose the days you want to show. These days will appear in the same order of the array. Alternatively, you can set displayDays equal to WeekDayPicker.weekendDays or WeekDayPicker.workDays to show theese days. by default, the widget will show ALL weekDays

Link to repository: https://github.com/andreskiu/weekday_selector_formfield/tree/master/weekday_selector_formfield

WeekDaySelectorFormField(
      displayDays: [days.monday, days.wednesday, days.friday],
      initialValue: [days.monday],
      borderRadius: 20,
      selectedFillColor: Colors.orange,
      borderSide: BorderSide(color: Colors.red, width: 2),
      language: lang.es,
      onChange: (days) {
        print("Selected Days: " + days.toString());
      },
    );

custom_picker.png

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

[1.0.2] - Octubre 23, 2019.

  • ChangeLog and homepage updated

[1.0.1] - Octubre 23, 2019.

Breaking change The widget is now on a Wrap container, instead of a Container. So, some params doesn't exists anymore and other have been changed (like crossAxisAlignment, now is WrapCrossAlignment)

  • [BUG FIX] Selected days were not being passed to "onSave", "onChange" and "Validator" callbacks;

  • New Now you can customize some extra visuals, like buttons sizes and spacing.

[1.0.0] - Octubre 19, 2019.

  • First Version.

Use this package as a library

1. Depend on it

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


dependencies:
  weekday_selector_formfield: ^1.0.2

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:weekday_selector_formfield/weekday_selector_formfield.dart';
  
Popularity:
Describes how popular the package is relative to other packages. [more]
21
Health:
Code health derived from static analysis. [more]
100
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
90
Overall:
Weighted score of the above. [more]
59
Learn more about scoring.

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

  • Dart: 2.6.0
  • pana: 0.12.21
  • Flutter: 1.9.1+hotfix.6

Platforms

Detected platforms: Flutter

References Flutter, and has no conflicting libraries.

Health issues and suggestions

Document public APIs. (-0.35 points)

44 out of 45 API elements have no dartdoc comment.Providing good documentation for libraries, classes, functions, and other API elements improves code readability and helps developers find and use your API.

Maintenance suggestions

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 weekday_selector_formfield.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
flutter 0.0.0
Transitive dependencies
collection 1.14.11 1.14.12
meta 1.1.7 1.1.8
sky_engine 0.0.99
typed_data 1.1.6
vector_math 2.0.8
Dev dependencies
flutter_test