week_pick_button 0.0.4 copy "week_pick_button: ^0.0.4" to clipboard
week_pick_button: ^0.0.4 copied to clipboard

this is a week_picker You can select each year, and you can select any number of weeks, and the plugin will return the start time of the target week.

example/lib/main.dart

import 'package:flutter/material.dart';
import "package:week_pick_button/week_pick_button.dart";

void main() {
  runApp(const MyApp());
}

class MyApp extends StatefulWidget {
  const MyApp({super.key});

  @override
  State<MyApp> createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  @override
  void initState() {
    super.initState();
  }

  void onChangeWeek(value) {
    print(value);
  }

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: Scaffold(
        appBar: AppBar(
          title: const Text('Plugin example app'),
        ),
        body: Center(
          child: WeekPickerButton(
            initialDate: DateTime.now(),
            firstDate: "2021",
            lastDate: "2024",
            onChanged: onChangeWeek,
          ),
        ),
      ),
    );
  }
}
2
likes
0
points
50
downloads

Publisher

unverified uploader

Weekly Downloads

this is a week_picker You can select each year, and you can select any number of weeks, and the plugin will return the start time of the target week.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

dropdown_button2, flutter, flutter_spinkit, flutter_web_plugins, fluttertoast, jiffy, plugin_platform_interface

More

Packages that depend on week_pick_button