Aidra Driver 1.3.5+68
Aidra Driver - Your path to green energy
Loading...
Searching...
No Matches
time_selector.dart File Reference
import dart;
import package;
import easy_localization.dart;
import material.dart;
import core;
import ui;
import theme;
import color_palette.dart;
Include dependency graph for time_selector.dart:

Go to the source code of this file.

Classes

class  StatefulWidget

Enumerations

enum  TimeRange { week , month , custom }

Functions

override Widget build (BuildContext context)
String _formatDate (DateTime date)
Widget _buildTab (String text, bool isSelected)
Widget _buildDateChip (String label, String date)
Future< void_showDateRangePicker (BuildContext context) async
void _updateTimeRange (TimeRange range)
void _fetchDataForTimeRange (DateTime start, DateTime end)

Variables

class TimeSelector extends StatefulWidget _selectedTimeRange = TimeRange.week
DateTime _startDate = DateTime.now().subtract(Duration(days: DateTime.now().weekday - 1))
DateTime _endDate = DateTime.now()

Enumeration Type Documentation

◆ TimeRange

enum TimeRange
Enumerator
week 
month 
custom 

Definition at line 213 of file time_selector.dart.

Function Documentation

◆ _buildDateChip()

Widget _buildDateChip ( String label,
String date )

Definition at line 123 of file time_selector.dart.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ _buildTab()

Widget _buildTab ( String text,
bool isSelected )

Definition at line 103 of file time_selector.dart.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ _fetchDataForTimeRange()

void _fetchDataForTimeRange ( DateTime start,
DateTime end )

Definition at line 206 of file time_selector.dart.

Here is the caller graph for this function:

◆ _formatDate()

String _formatDate ( DateTime date)

Definition at line 99 of file time_selector.dart.

◆ _showDateRangePicker()

Future< void > _showDateRangePicker ( BuildContext context)

Definition at line 154 of file time_selector.dart.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ _updateTimeRange()

void _updateTimeRange ( TimeRange range)

Definition at line 184 of file time_selector.dart.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ build()

override Widget build ( BuildContext context)

Definition at line 26 of file time_selector.dart.

Here is the call graph for this function:

Variable Documentation

◆ _endDate

DateTime _endDate = DateTime.now()

Definition at line 23 of file time_selector.dart.

◆ _selectedTimeRange

class TimeSelector extends StatefulWidget _selectedTimeRange = TimeRange.week

◆ _startDate

DateTime _startDate = DateTime.now().subtract(Duration(days: DateTime.now().weekday - 1))

Definition at line 22 of file time_selector.dart.