enif 0.5.4
enif: ^0.5.4 copied to clipboard
Automate business operations, boost business growth and increase customer satisfaction with streamlined automation.
Automate business operations, boost business growth and increase customer satisfaction with streamlined automation.
Features #
Knowledge Base
Getting started #
Head to Enif Website to create an account.
Usage #
Check the example folder for demo, click here for live demo
Initialize your business ID, and specify environment
void main() async {
WidgetsFlutterBinding.ensureInitialized();
EnifController.setBusinessId("YOUR_BUSINESS_ID", Env.dev);
runApp(const MyApp());
}
you can set user params to automatically login user
EnifController.setUser(EnifUserParams(
firstName: "Sade",
lastName: "Oluchi",
phoneNo: "0803000000",
email: "sade@enif.com"));
##### you can set deviceToken params to automatically add device token and receive push notifications
```dart
EnifController.setDeviceToken(
"cft5xLfER0i4PeRZEupqqp:APA91bFmWW0LuTYF7dbAm7bxEMUGkUWE8hKilLA6HTdFHu-vCTQeYCRunXkPJBnzLk3Bh27VRGCIkM3M2U7SmQHsbkK7W3Kns4kQSoG6ZhSQHU2ihjcpFSASBxeoZ3Ff6cJSGu4FIsRC"
);
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
return MaterialApp(
debugShowCheckedModeBanner: false,
title: 'Enif Chat Bot',
themeMode: ThemeMode.system,
theme: ThemeData.light(),
darkTheme: ThemeData.dark(),
home: const EnifHome(showBackButton: false),
);
}
}