t static method

Widget t({
  1. required BuildContext context,
  2. required List<Widget> children,
  3. required Axis axis,
  4. bool? axisBoth = false,
})

must use class "ListViewTemplate" inside type "PageTemplate"

Implementation

static Widget t(  {
  required BuildContext context,
  required List<Widget> children,
  required Axis axis,
  bool? axisBoth = false,           //used in "Table View"


  //
  // double? minWidth = 0, //fix hidden list untill api download
  // double? minHeight = 0,


} ) {

  Widget typeWidget ;

  if( axisBoth! ) {
    typeWidget = _getAxisBoth(context, children);
  }  else if( Axis.vertical == axis ) {
    typeWidget =  _getColumn(children);
  } else { //horizontal
    typeWidget =  _getRow(context, children);
  }

  return typeWidget;
  /**
   * have problem make all alignemtn forever start
   * and make stack take match parent width
   *
   *    //remove minHeight when list have value
      if( children.length > 0 ){
      minHeight = 0;
      }


      //set min  size for loading
      var stack = Stack(
      children: [
      EmptyView.empty( minWidth!, minHeight!),
      typeWidget
      ],
      );
      return stack;
   */

}