firebase / firebase/FirebaseUI-Flutter

[firebase_ui_storage] upload/download intents and actions for custom UIs

Aperta
#42 1 commento 0 reazioni 1 assegnatario Rivendicata da @lesnitsky Vedi su GitHub
enhancement Keep Open storage
Lingua principale
Dart
Stelle
151
Fork
141
Merge medio
2g 10h
PR unite (30g)
3

Descrizione

Firebase UI should provide intents and actions that could be used directly by custom UIs.

Example:

```dart
class MyApp extends StatelessWidget {
Widget build(BuildContext context) {
return Actions(
actions: {
UploadFileIntent: UploadFileAction(), // <- from 'package:firebase_ui_storage/firebase_ui_storage.dart'
},
...
)
}
}

class MyCustomView extends StatelessWidget {
Widget build(BuildContext context) {
return ElevatedButton(onPressed: () async {
final file = await pickFile();
Actions.invoke(UploadFileIntent(file));
}, ...);
}
}
```

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.