@@ -109,7 +109,7 @@ class DemoAppState extends State<DemoApp> {
109
109
setState (() => fileName = value);
110
110
},
111
111
),
112
- if (Platform .isAndroid) ...buildAndroidOptions (),
112
+ if (Platform .isAndroid) ...buildAndroidOptions (),
113
113
const SizedBox (height: 16 ),
114
114
ImagePreviews (imagePaths, onDelete: _onDeleteImage),
115
115
ElevatedButton .icon (
@@ -202,33 +202,33 @@ class DemoAppState extends State<DemoApp> {
202
202
203
203
List <Widget > buildAndroidOptions () {
204
204
return [
205
- const SizedBox (height: 16 ),
206
- Text ("Android Platform(Optional)" ),
207
- const SizedBox (height: 16 ),
208
- TextField (
209
- decoration: const InputDecoration (
210
- border: OutlineInputBorder (),
211
- labelText: 'Target package name' ,
212
- hintText: 'The target package name is available on Android.' ,
213
- ),
214
- maxLines: null ,
215
- onChanged: (String value) {
216
- setState (() => packageName = value);
217
- },
218
- ),
219
- const SizedBox (height: 16 ),
220
- TextField (
221
- decoration: const InputDecoration (
222
- border: OutlineInputBorder (),
223
- labelText: 'Target component name' ,
224
- hintText :
225
- 'The target component name is available on Android.' ,
226
- ) ,
227
- maxLines : null ,
228
- onChanged : ( String value) {
229
- setState (() => componentName = value);
230
- },
231
- ) ];
205
+ const SizedBox (height: 16 ),
206
+ Text ("Android Platform(Optional)" ),
207
+ const SizedBox (height: 16 ),
208
+ TextField (
209
+ decoration: const InputDecoration (
210
+ border: OutlineInputBorder (),
211
+ labelText: 'Target package name' ,
212
+ hintText: 'The target package name is available on Android.' ,
213
+ ),
214
+ maxLines: null ,
215
+ onChanged: (String value) {
216
+ setState (() => packageName = value);
217
+ },
218
+ ),
219
+ const SizedBox (height: 16 ),
220
+ TextField (
221
+ decoration: const InputDecoration (
222
+ border: OutlineInputBorder (),
223
+ labelText: 'Target component name' ,
224
+ hintText : 'The target component name is available on Android.' ,
225
+ ) ,
226
+ maxLines : null ,
227
+ onChanged : ( String value) {
228
+ setState (() => componentName = value);
229
+ },
230
+ )
231
+ ];
232
232
}
233
233
234
234
void _onDeleteImage (int position) {
@@ -250,8 +250,8 @@ class DemoAppState extends State<DemoApp> {
250
250
251
251
final scaffoldMessenger = ScaffoldMessenger .of (context);
252
252
ShareResult shareResult;
253
- final platformOptions = PlatformOptions (
254
- androidIntentOptions: AndroidIntentOptions (
253
+ final platformOptions = PlatformOptions (
254
+ androidIntentOptions: AndroidIntentOptions (
255
255
packageName: packageName,
256
256
componentName: componentName,
257
257
));
0 commit comments