t static method

Widget t(
  1. BuildContext context,
  2. Widget pageContent, {
  3. ScrollController? scrollController,
  4. double? toolbarHeight,
  5. double? footer_height,
  6. Color? effectScrollbar,
  7. bool? isStopScroll,
  8. 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;
}