flutter_month_picker 0.0.2 copy "flutter_month_picker: ^0.0.2" to clipboard
flutter_month_picker: ^0.0.2 copied to clipboard

Flutter month picker package lets you to choose month and year only and implement in your app.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:flutter_month_picker/flutter_month_picker.dart';

class MyApp extends StatelessWidget {
  const MyApp({Key? key}) : super(key: key);

  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Month Picker Example',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: Center(
        child: TextButton(
          onPressed: () {
            final selectedDate = showMonthPicker(
              context: context,
              initialDate: DateTime.now(), // Today's date
              firstDate: DateTime(2000, 5), // Stating date : May 2000
              lastDate: DateTime(2050), // Ending date: Dec 2050
            );
          },
          child: const Text('Open Flutter Month Picker'),
        ),
      ),
    );
  }
}
9
likes
80
points
106
downloads

Publisher

unverified uploader

Weekly Downloads

Flutter month picker package lets you to choose month and year only and implement in your app.

Repository (GitHub)

Documentation

API reference

License

GPL-3.0 (license)

Dependencies

flutter, intl

More

Packages that depend on flutter_month_picker