flutter + create a common component for the app 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: ,
);
}