timetracker_common

A Flutter package project for Flutter Advanced module.

Features

  • Customed checkbox
  • Customed radio
  • Customed button
  • Customed textfield
  • Customed tabs
  • Date selector
  • Duration selector
  • Calendar implementation classes

Flutter Widgets

CustomCheckbox
CustomCheckbox(
      {required this.checked,
      required this.title,
      required this.onChanged,
      required this.value});
CustomRadio
CustomRadio(
      {required this.title,
      required this.onChanged,
      required this.value,
      required this.groupValue});
DateSelector
DateSelector(
      {required this.date, required this.onChanged, required this.title});
DeleteDialog
DeleteDialog({required this.targetName, required this.onConfirm});
DurationSelector
DurationSelector(
      {required this.duration, required this.onChanged, required this.title});
EmployeeButton
EmployeeButton(
      {required this.title,
      this.color = const Color(0XFFF57C00),
      required this.onPress,
      this.selected = false});
LargeButton
LargeButton(
      {required this.title,
      required this.onPress,
      this.disabled = false,
      this.color = Large_Button_Color.primary});
MenuTitle
MenuTitle({required this.title});
NameTextfield
NameTextfield({required this.controller, this.placeholder = 'Name'});
NotSelectedText
NotSelectedText({required this.text});
PassTextfield
PassTextfield({required this.controller});
SearchTextField
SearchTextField({required this.controller});
Selector
Selector(
      {required this.value, required this.values, required this.onChanged});
TabButton
TabButton(
      {required this.title, required this.selected, required this.onPressed});
TabHeader
TabHeader(
      {required this.tabs,
      required this.currentTab,
      required this.onTabChanged,
      required this.headerTitleController,
      required this.defaultTitle,
      required this.onSave,
      required this.onDelete});
TimeSelector
TimeSelector(
      {required this.time, required this.onChanged, required this.title});
UserTextfield
UserTextfield({required this.controller, this.placeHolder});
Accordion
Accordion({required this.title, this.subtitle, required this.text});
BottomButton
BottomButton(
      {required this.onPressed, required this.title, this.disabled = false});
ColorButton
ColorButton(
      {required this.onPressed, required this.color, required this.title});
NavButton
NavButton({required this.onPressed, required this.title, this.subtitle});
NavHeader
NavHeader({required this.departmentName});
RadioFWButton
RadioFWButton(
      {required this.onPressed,
      required this.title,
      required this.subtitle,
      required this.activated});

Dart Classes

Calendar
Calendar({});
Day
Day(
      {required this.date,
      required this.dayOff,
      required this.dayOffTarget,
      required this.firstDayOffForTarget,
      required this.dayOffReason,
      required this.lastDayOffForTarget});
DaysOff
DaysOff(
      {required this.start,
      required this.end,
      required this.target,
      required this.reason});
Filter
Filter({required this.name, required this.color, required this.value});
ManagementStat
ManagementStat();
Message
Message(
      {required this.userName,
      required this.userImageUrl,
      required this.text,
      required this.employeeId,
      required this.date});
RadioButtonContent
RadioButtonContent(
      {this.title = '', this.subtitle = '', this.activated = false});
RequestContent
RequestContent({required this.title, required this.reason});
Utils
Utils({});

Libraries

timetracker_common