This is an application developed by GDSC Meru University android community.
This application is under development their will be changes.
- setup Futter
- Clone the repo
$ git clone https://github.com/piexie3/android_solution
$ cd android_solution
If you have not downloaded git
- For Windows download here and run as administrator
- For Linux Follow documentation here
- For Mac OS Follow documentation here
- Run the app by using this command
$ flutter run
- You will need to create a firebase account.
- click here to create a firebase account
- click on the "console" in the top-right-hand menu
- Click on "get started" button.
- Enter the name of the project in this case will be "androidSolution"
- (you can neglect google analytics)
Once your Firebase instance is created, you'll need to configure the project.
- Click on the project overview in the left-hand menu
- select Android project(with android Icon)
- Create an app within your Firebase instance for Android, with package name com.example.android_solution
- Follow instructions to download google-services.json
You'll need to enable Authentication Methodes.
- Click "Authentication" in the left-hand menu
- click on "get started"
- Click the "sign-in method" tab
- Click "Google" and enable it
You will need to enable the Firebase Database
- Click "Database" in the left-hand menu
- Click the Cloudstore "Create Database" button
- Select "Start in test mode" and "Enable"
After all configuration you have to go to (build.gradle) in defaultConfig section change
minSdkVersion flutter.minSdkVersion
to minSdkVersion 21
Alternative 1
keytool -exportcert -list -v \
-alias androiddebugkey -keystore ~/.android/debug.keystore
Alternative 2 Make sure you are in the project directory
Navigating to the Android Directory
$ cd android
Getting the signing reports
$ ./gradlew signingreport
In the Firebase console, in the settings of your Android app, add your SHA-1 key by clicking
Add Fingerprint
- Add both SHA-1 and SHA-256
- Sign in Screen
- Verification Screen
- Firebase configuration
- creating user with Email and password
- signing in user with email and password
- Home Screen
- Profile Screen
- The annotation @override marks an instance member as overriding a superclass member with the same name. Example
class A {
void foo() {
print("Class A");
}
}
class B extends A {}
class C extends A {
@override foo() {
print("Class C");
}
}
void main() {
A a = A();
B b = B();
C c = C();
a.foo();
b.foo();
c.foo();
}
Output
Class A
Class A
Class C