Skip to content

Instantly share code, notes, and snippets.

View Chetan11-dev's full-sized avatar
💭
I may be slow to respond so please give at least 1 week.

Chetan Jain Chetan11-dev

💭
I may be slow to respond so please give at least 1 week.
View GitHub Profile
@Chetan11-dev
Chetan11-dev / AssetDatabaseOpenHelper.java
Created August 6, 2019 10:33 — forked from wontondon/AssetDatabaseOpenHelper.java
Copy sqlite database from assets dir - Android
package com.javatarts.basketballgm.data;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
// import 'package:allsirsa/temp.dart' show TempApp;
import 'package:flutter/material.dart';
import 'package:effortless_firebase_auth/effortless_firebase_auth.dart';
import 'package:firebase_auth/firebase_auth.dart';
import 'package:firebase_core/firebase_core.dart';
Future<void> main() async {
WidgetsFlutterBinding.ensureInitialized();
await Firebase.initializeApp();
runApp(MyApp());