super_login 1.0.0 copy "super_login: ^1.0.0" to clipboard
super_login: ^1.0.0 copied to clipboard

A ready to use login/signup/recovery widget with functionalities and animations

example/lib/main.dart

import 'package:flutter/services.dart';
import 'package:flutter/material.dart';
import 'dashboard_screen.dart';
import 'login_screen.dart';
import 'transition_route_observer.dart';

void main() {
  SystemChrome.setSystemUIOverlayStyle(
    SystemUiOverlayStyle(
      systemNavigationBarColor:
          SystemUiOverlayStyle.dark.systemNavigationBarColor,
    ),
  );
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Login Demo',
      theme: ThemeData(
        // brightness: Brightness.dark,
        primarySwatch: Colors.deepPurple,
        accentColor: Colors.orange,
        cursorColor: Colors.orange,
        // fontFamily: 'SourceSansPro',
        textTheme: TextTheme(
          headline2: TextStyle(
            fontFamily: 'OpenSans',
            fontSize: 45.0,
            // fontWeight: FontWeight.w400,
            color: Colors.orange,
          ),
          button: TextStyle(
            // OpenSans is similar to NotoSans but the uppercases look a bit better IMO
            fontFamily: 'OpenSans',
          ),
          caption: TextStyle(
            fontFamily: 'NotoSans',
            fontSize: 12.0,
            fontWeight: FontWeight.normal,
            color: Colors.deepPurple[300],
          ),
          headline4: TextStyle(fontFamily: 'Quicksand'),
          headline3: TextStyle(fontFamily: 'Quicksand'),
          headline1: TextStyle(fontFamily: 'Quicksand'),
          //headline1: TextStyle(fontFamily: 'NotoSans'),
          //title: TextStyle(fontFamily: 'NotoSans'),
          //subhead: TextStyle(fontFamily: 'NotoSans'),
          //body2: TextStyle(fontFamily: 'NotoSans'),
          //body1: TextStyle(fontFamily: 'NotoSans'),
          //subtitle: TextStyle(fontFamily: 'NotoSans'),
          overline: TextStyle(fontFamily: 'NotoSans'),
        ),
      ),
      home: LoginScreen(),
      navigatorObservers: [TransitionRouteObserver()],
      routes: {
        LoginScreen.routeName: (context) => LoginScreen(),
        DashboardScreen.routeName: (context) => DashboardScreen(),
      },
    );
  }
}
4
likes
40
pub points
0%
popularity

Publisher

unverified uploader

A ready to use login/signup/recovery widget with functionalities and animations

Repository (GitHub)
View/report issues

License

MIT (LICENSE)

Dependencies

awesome_dialog, flutter, font_awesome_flutter, provider, quiver, transformer_page_view

More

Packages that depend on super_login