themeMap constant
Implementation
static const Map<String, WidgetTheme> themeMap = {
// High-level
'RenderObjectToWidgetAdapter': WidgetTheme(
icon: WidgetIcons.root,
color: highLevelWidgetColor,
),
'CupertinoApp': highLevelTheme,
'MaterialApp': highLevelTheme,
'WidgetsApp': highLevelTheme,
// Text
'DefaultTextStyle': textTheme,
'RichText': textTheme,
'SelectableText': textTheme,
'Text': textTheme,
// Images
'Icon': imageTheme,
'Image': imageTheme,
'RawImage': imageTheme,
// Animations
'AnimatedAlign': animatedTheme,
'AnimatedBuilder': animatedTheme,
'AnimatedContainer': animatedTheme,
'AnimatedCrossFade': animatedTheme,
'AnimatedDefaultTextStyle': animatedTheme,
'AnimatedListState': animatedTheme,
'AnimatedModalBarrier': animatedTheme,
'AnimatedOpacity': animatedTheme,
'AnimatedPhysicalModel': animatedTheme,
'AnimatedPositioned': animatedTheme,
'AnimatedSize': animatedTheme,
'AnimatedWidget': animatedTheme,
// Transitions
'DecoratedBoxTransition': transitionTheme,
'FadeTransition': transitionTheme,
'PositionedTransition': transitionTheme,
'RotationTransition': transitionTheme,
'ScaleTransition': transitionTheme,
'SizeTransition': transitionTheme,
'SlideTransition': transitionTheme,
'Hero': WidgetTheme(
icon: WidgetIcons.hero,
color: animationWidgetColor,
),
// Scroll
'CustomScrollView': scrollTheme,
'DraggableScrollableSheet': scrollTheme,
'SingleChildScrollView': scrollTheme,
'Scrollable': scrollTheme,
'Scrollbar': scrollTheme,
'ScrollConfiguration': scrollTheme,
'GridView': WidgetTheme(icon: WidgetIcons.grid_view),
'ListView': listTheme,
'ReorderableListView': listTheme,
'NestedScrollView': listTheme,
// Input
'Checkbox': WidgetTheme(
icon: WidgetIcons.checkbox,
color: contentWidgetColor,
),
'Radio': WidgetTheme(
icon: WidgetIcons.radio_button,
color: contentWidgetColor,
),
'Switch': toggleTheme,
'CupertinoSwitch': toggleTheme,
// Layout
'Container': WidgetTheme(icon: WidgetIcons.container),
'Center': WidgetTheme(icon: WidgetIcons.center),
'Row': WidgetTheme(icon: WidgetIcons.row),
'Column': WidgetTheme(icon: WidgetIcons.column),
'Padding': WidgetTheme(icon: WidgetIcons.padding),
'SizedBox': WidgetTheme(icon: WidgetIcons.sized_box),
'ConstrainedBox': WidgetTheme(icon: WidgetIcons.constrained_box),
'Align': alignTheme,
'Positioned': alignTheme,
'Expanded': flexibleTheme,
'Flexible': flexibleTheme,
'Stack': WidgetTheme(icon: WidgetIcons.stack),
'Wrap': WidgetTheme(icon: WidgetIcons.wrap),
// Buttons
'FloatingActionButton': WidgetTheme(
icon: WidgetIcons.floating_action_button,
color: contentWidgetColor,
),
'InkWell': WidgetTheme(icon: WidgetIcons.inkwell),
'GestureDetector': gestureTheme,
'RawGestureDetector': gestureTheme,
'TextButton': textButtonTheme,
'CupertinoButton': textButtonTheme,
'ElevatedButton': textButtonTheme,
'OutlinedButton': WidgetTheme(icon: WidgetIcons.outlined_button),
// Tabs
'Tab': tabTheme,
'TabBar': tabTheme,
'TabBarView': tabTheme,
'BottomNavigationBar': tabTheme,
'CupertinoTabScaffold': tabTheme,
'CupertinoTabView': tabTheme,
// Other
'Scaffold': WidgetTheme(icon: WidgetIcons.scaffold),
'CircularProgressIndicator':
WidgetTheme(icon: WidgetIcons.circular_progress),
'Card': WidgetTheme(icon: WidgetIcons.card),
'Divider': WidgetTheme(icon: WidgetIcons.divider),
'AlertDialog': WidgetTheme(icon: WidgetIcons.alert_dialog),
'CircleAvatar': WidgetTheme(icon: WidgetIcons.circle_avatar),
'Opacity': WidgetTheme(icon: WidgetIcons.opacity),
'Drawer': WidgetTheme(icon: WidgetIcons.drawer),
'PageView': WidgetTheme(icon: WidgetIcons.page_view),
'Material': WidgetTheme(icon: WidgetIcons.material),
};