Developer's Guide For Peaman Flutter - Shrijan Regmi
Follow the instructions below for the integration on Android and iOS. Get the package at pub.dev.
Since this package is entirely made on top of Firebase, you should connect firebase to your Android and iOS. Adding Firebase to your app involves tasks both in the Firebase console and in your open Android or iOS project (for example, you download Firebase config files from the console, then move them into your Android or iOS project).
buildscript {
repositories {
// Check that you have the following line (if not, add it):
google() // Google's Maven repository
}
dependencies {
// ...
// Add the following line:
classpath 'com.google.gms:google-services:4.3.10' // Google Services plugin
}
}
allprojects {
// ...
repositories {
// Check that you have the following line (if not, add it):
google() // Google's Maven repository
// ...
}
}
apply plugin: 'com.android.application'
// Add the following line:
apply plugin: 'com.google.gms.google-services' // Google Services plugin
android {
// ...
}
Using peaman package is fairly simple. You just have to follow the following 3 steps:
dependencies:
peaman: ^0.0.2
import 'package:peaman/peaman.dart';
import 'package:peaman/peaman.dart';
void main() async {
await Peaman.initializeApp();
runApp(ExampleApp());
}