I have two widgets, widget1 and widget2. Widget1: I have added one Drop-down in this widget. now I want to update widget2's views properties (like color and name) on drop-down item changes event.
So, Can I use interface to fulfill the above requirements? or Is there any other way to perform the same things?
Widget1
- Text
- DropdownButton
- OnChange(){
// Update widget2 (change txt1 & color1 values)
}
Widget2
- Text
- Container
- Card
- Text (txt1, color1...)