'How to import specific Widget to another file
I have created this date picker
Widget completedDatePicker() => Column(
children: [
buildDatePicker(),
confirmButton(),
]);
and I want to import just this widget to another file like this enter image description here
how do I import it and should I use Stack class to make it like the picture above
Solution 1:[1]
Well you can move it to its own class with its own context(basically as a stateful or stateless widget) And then you can use it anywhere you need it.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | griffins |
