A minimalist opinionated helper for custom selectors and Calendar

Tie Picker

Tie picker is a minimalist opinionated helper for custom selectors and DateTime that support Theme Colors (only light mode supported right now) and internationalization.

Using TiePicker

  1. Install

  2. To support internationalization add the following to your MaterialApp

    import 'package:tie_picker/tie_picker.dart';

    MaterialApp(
        locale: const Locale('en'),
        /// Add the supported locales
        supportedLocales: TiePickerLocalizations.supportedLocales,
        localizationsDelegates: const [
            GlobalMaterialLocalizations.delegate,
            GlobalWidgetsLocalizations.delegate,
            GlobalCupertinoLocalizations.delegate,
            /// Add the localizations delegate
            TiePickerLocalizations.delegate
        ],
    );

Calendar

To use the calendar pass the actual Date on the Date argument. Localizations are used and required to have a proper format for the dates.

You can set the selector from one of the following modes:

enum CalendarMode {
  day,
  month,
  year,
}

Usage:

date = await ModalPicker.datePicker(
    context: context,
    date: date,
    mode: CalendarMode.day,
);

ModalPicker

MiniPicker

GitHub

View Github