big_head_softwares
library
Functions
-
accentColor(BuildContext context)
→ Color
-
accentColor gives access to accent color of theme
-
pop(BuildContext context)
→ void
-
To pop any screen use pop and pass the
context
as argument
-
primaryColor(BuildContext context)
→ Color
-
primaryColor gives access to primary color of theme
-
push(BuildContext context, Widget route)
→ Future<Widget?>
-
To push another screen on the stack use push and pass the
context
,Screen/Page/Widget
To push a named or onGenerate route please use pushNamed and pass the context
,Route,arguments
if any
-
pushAndRemoveUntil(BuildContext context, Widget screen)
→ Future<Widget?>
-
To clear the stack and push a screen use pushAndRemoveUntil and pass the
context
,Screen/Page/Widget
To clear the stack and push a named or onGenerate please use pushNamedAndRemoveUntil and pass the context
,Route,arguments
if any
-
pushNamed<T extends Object?>(BuildContext context, String route, {Object? arguments})
→ Future<T?>
-
To push a named or onGenerate route please use pushNamed and pass the
context
,Route,arguments
if any
-
pushNamedAndRemoveUntil<T extends Object?>(BuildContext context, String route, {Object? arguments})
→ Future<T?>
-
To clear the stack and push a named or onGenerate please use pushNamedAndRemoveUntil and pass the
context
,Route,arguments
if any
-
pushReplacement(BuildContext context, Widget route)
→ Future<Widget?>
-
To replace screen on to the stack use pushReplacement and pass the
context
,Screen/Page/Widget
To replace a named or onGenerate route please use pushReplacementNamed and pass the context
,Route,arguments
if any
-
pushReplacementNamed<T extends Object?>(BuildContext context, String route, {Object? arguments})
→ Future<T?>
-
To replace a named or onGenerate route please use pushReplacementNamed and pass the
context
,Route,arguments
if any
-
radius(double radius)
→ BorderRadius
-
radius helps to replace BorderRadius.circular(double) to radius(double)
-
scaffoldColor(BuildContext context)
→ Color
-
scaffoldColor gives access to scaffold color of theme
-
screenHeight(BuildContext context)
→ double
-
screenHeight provides the current screen height.
-
screenPaddingBottom(BuildContext context)
→ double
-
screenPaddingBottom provides the screen padding from the bottom
-
screenPaddingLeft(BuildContext context)
→ double
-
screenPaddingLeft provides the screen padding from the left
-
screenPaddingRight(BuildContext context)
→ double
-
screenPaddingRight provides the screen padding from the right
-
screenPaddingTop(BuildContext context)
→ double
-
screenPaddingTop provides the current screen padding from the top
-
screenWidth(BuildContext context)
→ double
-
screenWidth provides the current screen width.
-
sizedBoxHeight(double height)
→ SizedBox
-
sizedBoxHeight helps you to create a space between to widgets vertically just pass any double value as the parameter
Note: No child widget can be provided to this sizedBoxHeight. if you want to use child widget please refer to SizedBox
-
sizedBoxWidth(double width)
→ SizedBox
-
sizedBoxHeight helps you to create a space between to widgets horizontally just pass any double value as the parameter
Note: No child widget can be provided to this sizedBoxWidth
. if you want to use child widget please refer to SizedBox
-
textTheme(BuildContext context)
→ TextTheme
-
textTheme this will help you to access any predefined text themes
-
theme(BuildContext context)
→ ThemeData
-
theme is called to access all the theme data.
Note: if you want to use textTheme from in theme data prefer textTheme
if you want to use primary color you can call primaryColor same as for accentColor and scaffoldColor