no_overtime 0.0.1 copy "no_overtime: ^0.0.1" to clipboard
no_overtime: ^0.0.1 copied to clipboard

No more overtime, go home & enjoy your life

No Overtime #

No more overtime. Go home early & enjoy your life!

Features #

  • Throws a StateError if in the weekend (Saturday or Sunday).
  • Throws a StateError if outside your working hours.
  • Throws a StateError if start time >= end time (haha, troll).
  • Only active in DEBUG mode (kDebugMode == true). Does nothing in release builds.

Getting started #

dev_dependencies:
  no_overtime:
  flutter_test:
    sdk: flutter

Usage #

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

void main() {
  NoOvertime.config(
    start: TimeOfDay(hour: 9, minute: 0),  // Optional. Default: 9:00
    end: TimeOfDay(hour: 17, minute: 30), // Optional. Default: 18:00
  );

  runApp(MyApp());
}

Rest, my bros! Enjoy our life! #

9
likes
150
points
7
downloads

Publisher

verified publishernvbien.site

Weekly Downloads

No more overtime, go home & enjoy your life

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

flutter

More

Packages that depend on no_overtime