month_picker_intl 0.0.4 copy "month_picker_intl: ^0.0.4" to clipboard
month_picker_intl: ^0.0.4 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:month_picker_intl/month_picker_intl.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'),
        ),
      ),
    );
  }
}
2
likes
80
points
0
downloads

Publisher

verified publisherkitahealth.my.id

Weekly Downloads

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

Homepage

Documentation

API reference

License

GPL-3.0 (license)

Dependencies

flutter, intl

More

Packages that depend on month_picker_intl