TGView class

TGFramework's View related implementation

Constructors

TGView()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

appBarBackButton({required BuildContext context, IconData icon = Icons.arrow_back_ios}) IconButton
App Bar Back Button
appBarTheme() AppBarTheme
Reference of AppBarTheme
Create Banner
boxContainer({EdgeInsetsGeometry? margin, EdgeInsetsGeometry? padding, CrossAxisAlignment crossAxisAlignment = CrossAxisAlignment.start, Color color = Colors.transparent, Color borderColor = Colors.transparent, required List<Widget> children, double borderWidth = 0.5, double borderRadius = 10}) Container
Box Container
clearFocus(BuildContext context) → void
Clears focus of current object. Generally used to hide keyboard
clearFocusGesture(BuildContext context, Widget child) GestureDetector
Create gesture detector with clear focus
colorScheme() ColorScheme
Reference of ColorScheme
columnContainer({EdgeInsetsGeometry? margin, EdgeInsetsGeometry? padding, Color color = Colors.transparent, CrossAxisAlignment? crossAxisAlignment, MainAxisAlignment? mainAxisAlignment, MainAxisSize mainAxisSize = MainAxisSize.max, required List<Widget> children}) Container
Column container to display
columnsContainer({required List<List<Widget>> columns, EdgeInsetsGeometry? margin, EdgeInsetsGeometry? padding, Color color = Colors.transparent, MainAxisAlignment? mainAxisAlignment, CrossAxisAlignment? crossAxisAlignment, MainAxisSize mainAxisSize = MainAxisSize.max}) Container
Multiple Columns container to display
divider({double? height}) Widget
Standard Divider
emptyContainer() Container
Empty Background Container
emptySizedBox({double? height, double? width}) Widget
Empty Sized Box with given height and/or width
loadDarkTheme() → void
Load Default Dark Theme
loadingIndicator(Color color) Widget
Loading Indicator with given Color code
loadLightTheme() → void
Load Default Light Theme
loadTheme(ThemeData themeData) → void
Load Theme by provided ThemeData
platform() TargetPlatform
Reference of TargetPlatform
popupMenuItem({IconData? icon, String? text, dynamic value, Color? iconColor, Color? textColor}) PopupMenuItem
Popup Menu Item
refreshIndicator({required List<Widget> widgets, required dynamic onRefresh, Color backgroundContainerColor = Colors.transparent}) RefreshIndicator
Refresh Indicator
rowContainer({EdgeInsetsGeometry? margin, EdgeInsetsGeometry? padding, CrossAxisAlignment crossAxisAlignment = CrossAxisAlignment.start, MainAxisSize mainAxisSize = MainAxisSize.max, Color color = Colors.transparent, List<Widget>? left, List<Widget>? center, List<Widget>? right}) Container
Row container to display widgets row. Left & Right aligned
scaffoldContainer(List<Widget> widgets, {Container? backgroundContainer}) Scaffold
Common Scaffold Container
showAlertDialog({required BuildContext context, List<Widget>? titleRowWidgets, Widget? content, List<Widget>? actions, dynamic onDismiss}) → void
Show alert dialog with various components
showSnackBar({required BuildContext context, required String message, Duration? duration, Color? backgroundColor, SnackBarBehavior behavior = SnackBarBehavior.floating}) → void
Show Snackbar
sliverScrollView(List<Widget> widgets) Container
Customer Scroll View with Sliver List
tabBarTheme() TabBarTheme
Reference of TabBarTheme
textTheme() TextTheme
Reference of TextTheme
theme() ThemeData?
Reference of Theme