FlexWidget constructor

FlexWidget({
  1. Widget? child,
  2. FlexBuilder? builder,
  3. int xs = 12,
  4. int xsOffset = 0,
  5. int? xsLand,
  6. int? xsLandOffset,
  7. int sm = 6,
  8. int smOffset = 0,
  9. int? smLand,
  10. int? smLandOffset,
  11. int md = 6,
  12. int mdOffset = 0,
  13. int? mdLand,
  14. int? mdLandOffset,
  15. int lg = 3,
  16. int lgOffset = 0,
  17. int? lgLand,
  18. int? lgLandOffset,
  19. int xl = 3,
  20. int xlOffset = 0,
  21. int xlLand = 0,
  22. int? xlLandOffset,
  23. int xxl = 3,
  24. int xxlOffset = 0,
  25. int? xxlLand,
  26. int? xxlLandOffset,
  27. int xxxl = 3,
  28. int xxxlOffset = 0,
  29. int? xxxlLand,
  30. int? xxxlLandOffset,
})

Implementation

FlexWidget({
  Widget? child,
  FlexBuilder? builder,
  int xs = 12,
  int xsOffset = 0,
  int? xsLand,
  int? xsLandOffset,
  int sm = 6,
  int smOffset = 0,
  int? smLand,
  int? smLandOffset,
  int md = 6,
  int mdOffset = 0,
  int? mdLand,
  int? mdLandOffset,
  int lg = 3,
  int lgOffset = 0,
  int? lgLand,
  int? lgLandOffset,
  int xl = 3,
  int xlOffset = 0,
  int xlLand = 0,
  int? xlLandOffset,
  int xxl = 3,
  int xxlOffset = 0,
  int? xxlLand,
  int? xxlLandOffset,
  int xxxl = 3,
  int xxxlOffset = 0,
  int? xxxlLand,
  int? xxxlLandOffset,
})  : assert(builder == null || child == null),
      super(
          builder: builder ??
              (BuildContext context, double width, double offset,
                  ScreenSize screenSize) {
                if (offset > 0.0) {
                  return Container(
                    margin: EdgeInsets.only(left: offset),
                    child: SizedBox(
                      width: width,
                      child: child,
                    ),
                  );
                } else {
                  return SizedBox(
                    width: width,
                    child: child,
                  );
                }
              },
          xs: xs,
          xsOffset: xsOffset,
          xsLand: xsLand,
          xsLandOffset: xsLandOffset,
          sm: sm,
          smOffset: smOffset,
          smLand: smLand,
          smLandOffset: smLandOffset,
          md: md,
          mdOffset: mdOffset,
          mdLand: mdLand,
          mdLandOffset: mdLandOffset,
          lg: lg,
          lgOffset: lgOffset,
          lgLand: lgLand,
          lgLandOffset: lgLandOffset,
          xl: xl,
          xlOffset: xlOffset,
          xlLand: xlLand,
          xlLandOffset: xlLandOffset,
          xxl: xxl,
          xxlLand: xxlLand,
          xxlLandOffset: xxlLandOffset,
          xxlOffset: xxlOffset,
          xxxl: xxxl,
          xxxlLand: xxxlLand,
          xxxlLandOffset: xxlLandOffset,
          xxxlOffset: xxxlOffset);