flutter create your own widget code example
Example: how to make reusable widget in flutter
Widget buildListContainer(BuildContext context,Widget list) {
return Container(
height: 300,
child: ,
);
}
Widget buildListContainer(BuildContext context,Widget list) {
return Container(
height: 300,
child: ,
);
}