suggest_a_feature_firestore 0.1.2 copy "suggest_a_feature_firestore: ^0.1.2" to clipboard
suggest_a_feature_firestore: ^0.1.2 copied to clipboard

A package that contains the firestore based data source for suggest_a_feature.

example/lib/main.dart

import 'package:cloud_firestore/cloud_firestore.dart';
import 'package:suggest_a_feature/suggest_a_feature.dart';
import 'package:suggest_a_feature_firestore/suggest_a_feature_firestore.dart';

void main() async {
  final dataSource = FirestoreDataSource(
    userId: 'user-id',
    firestoreInstance: FirebaseFirestore.instance,
  );

  final createSuggestionModel = CreateSuggestionModel(
    title: 'My suggestion',
    description: 'Here is what I think should be added to the app...',
    authorId: '',
    isAnonymous: true,
    labels: [],
  );
  final createdSuggestion =
      await dataSource.createSuggestion(createSuggestionModel);

  await dataSource.deleteSuggestionById(createdSuggestion.id);
}
4
likes
0
pub points
33%
popularity

Publisher

verified publisherflutter.wtf

A package that contains the firestore based data source for suggest_a_feature.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

cloud_firestore, flutter, suggest_a_feature

More

Packages that depend on suggest_a_feature_firestore