flutter meme-enabled chat
an example of a meme-enabled chat app on flutter, using firebase, google sign in, and device camera integration.
memechat contains platform-specific elements for android and ios.
usage
- follow the installation instructions on www.flutter.io to install flutter.
- you’ll need to create a firebase instance. follow the instructions at https://console.firebase.google.com.
- once your firebase instance is created, you’ll need to enable anonymous authentication.
- go to the firebase console for your new instance.
- click “authentication” in the left-hand menu
- click the “sign-in method” tab
- click “anonymous” and enable it
- (skip if not running on android)
- create an app within your firebase instance for android, with package name com.yourcompany.memechat
- follow instructions to download google-services.json, and place it into memechat/android/app/
- run the following command to get your sha-1 key:
keytool -exportcert -list -v
-alias androiddebugkey -keystore ~/.android/debug.keystore
- in the firebase console, in the settings of your android app, add your sha-1 key by clicking “add fingerprint”.
- (skip if not running on ios)
- create an app within your firebase instance for ios, with package name com.yourcompany.memechat
- follow instructions to download googleservice-info.plist, and place it into memechat/ios/runner
- open memechat/ios/runner/info.plist. locate the cfbundleurlschemes key. the second item in the array value of this key is specific to the firebase instance. replace it with the value for reversed_client_id from googleservice-info.plist
- memechat can be run like any other flutter app, either through the intellij ui or through running the following command from within the memechat directory:
flutter run
Comments are closed.