suggest_a_feature_firestore 0.4.1 copy "suggest_a_feature_firestore: ^0.4.1" to clipboard
suggest_a_feature_firestore: ^0.4.1 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);
}
3
likes
150
pub points
41%
popularity

Publisher

verified publisherflutter.wtf

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

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

cloud_firestore, flutter, suggest_a_feature

More

Packages that depend on suggest_a_feature_firestore