child property
This is the widget that you want to be centered. For more effective results, you can pass the root of widgets:
runApp(MaterialApp(home: CenterTheWidgets(child: YourHomeWidget())));
Implementation
final Widget child;
This is the widget that you want to be centered. For more effective results, you can pass the root of widgets:
runApp(MaterialApp(home: CenterTheWidgets(child: YourHomeWidget())));
final Widget child;