t static method
Widget
t(
- BuildContext context,
- Widget pageContent, {
- ScrollController? scrollController,
- double? toolbarHeight,
- Color? effectScrollbar,
- bool? isStopScroll,
- bool? thumbVisibility,
Implementation
static Widget t( BuildContext context, Widget pageContent,
{
ScrollController? scrollController,
double? toolbarHeight,
double? footer_height,
Color? effectScrollbar,
bool? isStopScroll,
bool? thumbVisibility
}) {
//default
toolbarHeight ??= 0;
footer_height ??= 0;
// var statusBarHeight = StatusBarConstant.getHeight();
// Log.i( "statusHeight : " + statusHeight.toString() );
// fix toolbar + navigation
var tallView = Column( children: [
// EmptyView.empty( statusBarHeight , statusBarHeight ),
EmptyView.empty( toolbarHeight , toolbarHeight ),
pageContent,
EmptyView.empty( footer_height , footer_height )
]);
//validate not need
var scroll ;
if( DeviceTools.isBrowserIOS() ) {
scroll = ScrollViewPage._caseScrollMobileBrowser( context, tallView, effectScrollbar, isStopScroll, thumbVisibility);
} else if ( DeviceTools.isPlatformWeb() ) {
scroll = ScrollViewPage._caseScrollNormal( context, tallView, scrollController, effectScrollbar, isStopScroll, thumbVisibility );
} else {
scroll = ScrollViewPage._caseScrollNormal( context, tallView, scrollController, effectScrollbar, isStopScroll, thumbVisibility );
}
return scroll;
}