firestore_ref 0.8.0-dev+25 firestore_ref: ^0.8.0-dev+25 copied to clipboard
Firestore reference/document typed acccess helpers. You can write organized safe code by this.
import 'package:firestore_ref/firestore_ref.dart';
import 'package:flutter/material.dart';
import 'app.dart';
import 'model/service/service.dart';
import 'util/util.dart';
void main() {
logger.fine('start');
WidgetsFlutterBinding.ensureInitialized();
Firestore.instance.settings(persistenceEnabled: true);
runApp(
MultiProvider(
providers: [
Provider(create: (context) => AppInfo()),
ChangeNotifierProvider(
create: (context) => Authenticator()..signInAnonymously(),
),
],
child: App(),
),
);
}
class AppInfo {
String get title => 'Firebase Counter';
}