first_day_of_the_week 1.0.0 copy "first_day_of_the_week: ^1.0.0" to clipboard
first_day_of_the_week: ^1.0.0 copied to clipboard

Flutter plugin for getting system's first day of the week.

example/lib/main.dart

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

void main() async {
  WidgetsFlutterBinding.ensureInitialized();
  await FirstDayOfTheWeek.init();
  runApp(const MyApp());
}

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

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

class _MyAppState extends State<MyApp> {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: const Text('First day of the week example'),
        ),
        body: Center(
          child:
              Text('first day of week on phone: ${FirstDayOfTheWeek.value}\n'),
        ),
      ),
    );
  }
}
4
likes
160
points
53
downloads

Publisher

unverified uploader

Weekly Downloads

Flutter plugin for getting system's first day of the week.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on first_day_of_the_week

Packages that implement first_day_of_the_week