File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ class MyApp extends StatelessWidget {
26
26
class ApiImage {
27
27
final String imageUrl;
28
28
final String id;
29
+
29
30
ApiImage ({
30
31
required this .imageUrl,
31
32
required this .id,
@@ -138,6 +139,20 @@ class MyHomePage extends StatelessWidget {
138
139
iconColor: Colors .white,
139
140
icon: Icons .ac_unit_rounded,
140
141
),
142
+ const SizedBox (height: 15 ),
143
+ FormBuilderImagePicker (
144
+ name: 'onlyCamera' ,
145
+ decoration: const InputDecoration (
146
+ labelText: 'Pick Photos (only from camera)' ),
147
+ availableImageSources: const [ImageSourceOption .camera],
148
+ ),
149
+ const SizedBox (height: 15 ),
150
+ FormBuilderImagePicker (
151
+ name: 'onlyGallery' ,
152
+ decoration: const InputDecoration (
153
+ labelText: 'Pick Photos (only from gallery)' ),
154
+ availableImageSources: const [ImageSourceOption .gallery],
155
+ ),
141
156
ElevatedButton (
142
157
child: const Text ('Submit' ),
143
158
onPressed: () {
You can’t perform that action at this time.
0 commit comments