Skip to content

Commit

Permalink
Update picker.dart
Browse files Browse the repository at this point in the history
you can get widget and use it easily every where.
  • Loading branch information
alireza-hnzpv authored Apr 4, 2023
1 parent 4a88a43 commit f2e20fb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/picker.dart
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,11 @@ class Picker {
return builder == null ? picker : builder(context, picker);
});
}

/// get widget
Widget getWidget(BuildContext context) {
return builder == null ? picker : builder(context, picker);
}

/// show dialog picker
Future<List<int>?> showDialog(BuildContext context,
Expand Down

0 comments on commit f2e20fb

Please sign in to comment.