flutter_weekday_selector 0.0.3 copy "flutter_weekday_selector: ^0.0.3" to clipboard
flutter_weekday_selector: ^0.0.3 copied to clipboard

outdated

This package will provide flutter developer a quick way to make a week day selection functionality.

example/lib/main.dart

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

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

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

  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Week Day Selector',
      theme: ThemeData(
        colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
        useMaterial3: true,
      ),
      home: const MyHomePage(),
    );
  }
}

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

  @override
  State<MyHomePage> createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        backgroundColor: Theme.of(context).colorScheme.inversePrimary,
        title: const Text("Flutter Week Day Selector"),
      ),
      body: Center(
        child: WeekDaySelector(
          onSubmitted: (day) {
            print(day);
          },
        ),
      ),
      // This trailing comma makes auto-formatting nicer for build methods.
    );
  }
}
5
likes
0
points
147
downloads

Publisher

unverified uploader

Weekly Downloads

This package will provide flutter developer a quick way to make a week day selection functionality.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on flutter_weekday_selector