BuildContext Extensions
VelocityX gives you powerful extensions for BuildContext.
Navigation
navigation
extension for getting NavigatorState
Next Page
nextPage
extension for going to next page
note
It takes a page widget and an optional maintainState prop. By default it uses MaterialPageRoute.
Next Replacement Page
nextReplacementPage
extension for going to next page as a replacement
note
It takes a page widget and an optional maintainState prop. By default it uses MaterialPageRoute.
Next And Remove Until Page
nextAndRemoveUntilPage
extension for going to next page and remove everything in stack
note
It takes a page widget. By default it uses MaterialPageRoute.
Pop Page
pop
extension for going to next page and remove everything in stack
note
It just pops the current page.
Theme
theme
extension for getting Theme
TextTheme
textTheme
extension for getting Text Theme
captionStyle
extension for getting caption styled Text
note
As per our survey, this is a very much used styling.