custom_auth_ui 1.0.2 copy "custom_auth_ui: ^1.0.2" to clipboard
custom_auth_ui: ^1.0.2 copied to clipboard

The authentication UI for the Flutter package communicates with Laravel's full authentication

example/lib/main.dart

import 'package:custom_auth_ui/custom_auth_ui.dart';
import 'package:example/core/binding.dart';
import 'package:example/core/routes.dart';
import 'package:example/core/translations.dart';
import 'package:flutter/material.dart';
import 'package:get/get.dart';

Future<void> main() async {
  WidgetsFlutterBinding.ensureInitialized();
  await initialServices(baseUrl: "http://10.0.2.2:8000/phone");
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    LocaleController controller = Get.put(LocaleController());
    return GetMaterialApp(
      translations: CustomTranslations(),
      title: 'Flutter Demo',
      debugShowCheckedModeBanner: false,
      theme: ThemeData(
        fontFamily: "Cairo",
        colorScheme: ColorScheme.fromSeed(seedColor: Colors.green),
        primaryColor: Colors.green,
        useMaterial3: true,
      ),
      initialRoute: RouteHelper.onboardingPage,
      // home: const LoginPage(),
      locale: controller.language,
      getPages: RouteHelper().routes,
      initialBinding: InitialBindings(),
    );
  }
}
2
likes
0
pub points
0%
popularity

Publisher

unverified uploader

The authentication UI for the Flutter package communicates with Laravel's full authentication

Repository (GitHub)
View/report issues

Topics

#server #widget

License

unknown (license)

Dependencies

flutter, get, shared_preferences

More

Packages that depend on custom_auth_ui