custom_auth_ui 2.0.3 copy "custom_auth_ui: ^2.0.3" to clipboard
custom_auth_ui: ^2.0.3 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
130
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

Documentation

API reference

License

GPL-3.0 (license)

Dependencies

flutter, flutter_slidable, flutter_speed_dial, get, rxdart, shared_preferences

More

Packages that depend on custom_auth_ui