kweight function

Widget kweight({
  1. Widget? child,
  2. int flex = 1,
})

占用都多的空间

Implementation

Widget kweight({Widget? child, int flex = 1}) {
  return Expanded(
    flex: flex,
    child: child ?? const Text(""),
  );
}