master #81
@ -20,11 +20,16 @@ import 'package:wyatt_bloc_layout/wyatt_bloc_layout.dart';
|
|||||||
mixin GridLayoutMixin<SuccessType extends Object?> {
|
mixin GridLayoutMixin<SuccessType extends Object?> {
|
||||||
Widget gridChild(BuildContext context, SuccessType? successType);
|
Widget gridChild(BuildContext context, SuccessType? successType);
|
||||||
|
|
||||||
|
double get verticalGap => 30;
|
||||||
|
double get horizontalGap => 30;
|
||||||
|
|
||||||
Widget successBuilder(
|
Widget successBuilder(
|
||||||
BuildContext context,
|
BuildContext context,
|
||||||
CrudListLoaded<SuccessType> state,
|
CrudListLoaded<SuccessType> state,
|
||||||
) =>
|
) =>
|
||||||
GridLayout(
|
GridLayout(
|
||||||
|
verticalGap: verticalGap,
|
||||||
|
horizontalGap: horizontalGap,
|
||||||
children: state.data.map((e) => gridChild(context, e)).toList(),
|
children: state.data.map((e) => gridChild(context, e)).toList(),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user