flutter_time_range uses toggle switch which cause below error :-
../../.pub-cache/hosted/pub.dev/toggle_switch-0.1.9/lib/toggle_switch.dart:106:29: Error: The getter 'accentTextTheme' isn't defined for the class 'ThemeData'.
- 'ThemeData' is from 'package:flutter/src/material/theme_data.dart' ('../../flutter/packages/flutter/lib/src/material/theme_data.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'accentTextTheme'.
? Theme.of(context).accentTextTheme.bodyText1!.color
^^^^^^^^^^^^^^^