Custom Widgets
info
There are several methods to create custom widgets, but the most basic is to combine simple existing widgets into the more complex widget that you want. This is called composition.
- use
Compositioninstead ofInheritanceto extend Widgets which are already defined or which already extend a StatelessWidget.