Skip to content

Instantly share code, notes, and snippets.

@blaugold
Last active March 19, 2022 11:08
Show Gist options
  • Save blaugold/127dc08004b355ad634532368ec6c767 to your computer and use it in GitHub Desktop.
Save blaugold/127dc08004b355ad634532368ec6c767 to your computer and use it in GitHub Desktop.
import 'package:cbl_flutter/cbl_flutter.dart';
Future<void> main() async {
// If you're initializing Couchbase Lite in your `main` function
// make sure to initialize Flutter before Couchbase Lite.
WidgetsFlutterBinding.ensureInitialized();
// Now initialize Couchbase Lite.
await CouchbaseLiteFlutter.init();
// Finally, start running the app.
runApp(MyApp());
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment