enif 0.0.1 copy "enif: ^0.0.1" to clipboard
enif: ^0.0.1 copied to clipboard

outdated

Automate business operations, boost business growth and increase customer satisfaction with streamlined automation.

example/lib/main.dart

import 'package:enif/enif.dart';
import 'package:enif/models/enif_user_params.dart';
import 'package:enif/modules/home/views/enif_home.dart';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';

// AppPreferences? appPreferences;
void main() async {
  WidgetsFlutterBinding.ensureInitialized();
  EnifController.setBusinessId(
      "438b9f5c-cb40-4861-95d0-0fcdc24ccb624f518a56-964d-45f1-bc68-ba1191d62b78");
  await SystemChrome.setPreferredOrientations(
      [DeviceOrientation.portraitUp, DeviceOrientation.portraitDown]);

  EnifController.setUser(EnifUserParams(
      firstName: "Sade",
      lastName: "Oluchi",
      phoneNo: "0803000000",
      email: "sade@enif.com"));
  // appPreferences = await AppPreferences.getInstance();
  runApp(const MyApp());
}

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),
    );
  }
}
3
likes
0
points
17
downloads

Publisher

unverified uploader

Weekly Downloads

Automate business operations, boost business growth and increase customer satisfaction with streamlined automation.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

data_repository, flutter, flutter_animate, flutter_svg, image_picker, shared_preferences

More

Packages that depend on enif