intelligentsia_forms 1.1.0 copy "intelligentsia_forms: ^1.1.0" to clipboard
intelligentsia_forms: ^1.1.0 copied to clipboard

A customizable Flutter package to build sign-in and sign-up forms.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:intelligentsia_forms/intelligentsia_forms.dart';

void main() => runApp(const MyApp());

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

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: const Text('Intelligentsia Forms'),
          backgroundColor: IntelligentsiaColors.bg,
        ),
        backgroundColor: IntelligentsiaColors.bg,
        body: SingleChildScrollView(
          child: Column(
            crossAxisAlignment: CrossAxisAlignment.start,
            children: [
              const SizedBox(height: 20),
              // ---#---#---#---#---#---#---#---#---#---#---#
              SmartTextFormField(
                controller: TextEditingController(),
                onChanged: (string) => print("string"),
                formType: FormType.userName,
                primaryColor: Colors.black87,
                enabledBorderSide: const BorderSide(color: IntelligentsiaColors.transparent),
              ),

              // ---#---#---#---#---#---#---#---#---#---#---#
              const SmartTextFormField(
                formType: FormType.email,
              ),

              // ---#---#---#---#---#---#---#---#---#---#---#
              const SmartTextFormField(
                formType: FormType.password,
                primaryColor: Colors.black87, // optional
                enabledBorderSide: BorderSide(color: IntelligentsiaColors.transparent),
              ),

              // ---#---#---#---#---#---#---#---#---#---#---#
              const SmartTextFormField(formType: FormType.aboutMe),

              // ---#---#---#---#---#---#---#---#---#---#---#
              CountrySelector(onCountrySelected: (countryName, countryCode, countryFlag) {
                print("Country Name: $countryName, Country Code: $countryCode, Country Flag: $countryFlag");
              }),

              // ---#---#---#---#---#---#---#---#---#---#---#
              DateSelector(
                selectedDate: (int year, int month, int day) {
                  print("Selected Date: Year: $year, Month: $month, Day: $day");
                },
              ),

              // ---#---#---#---#---#---#---#---#---#---#---#
              GenderSelector(onGenderSelected: (gender) {
                print("Selected gender : $gender");
              }),

              // ---#---#---#---#---#---#---#---#---#---#---#
              Padding(
                padding: const EdgeInsets.symmetric(vertical: 10, horizontal: 20),
                child: Row(
                  mainAxisAlignment: MainAxisAlignment.spaceBetween,
                  children: [
                    SocialAuthButton(provider: SocialAuthProvider.google, onTap: () {}),
                    SocialAuthButton(provider: SocialAuthProvider.facebook, onTap: () {}),
                    SocialAuthButton(provider: SocialAuthProvider.twitter, onTap: () {}),
                    SocialAuthButton(provider: SocialAuthProvider.pinterest, onTap: () {}),
                    SocialAuthButton(provider: SocialAuthProvider.apple, onTap: () {}),
                    SocialAuthButton(provider: SocialAuthProvider.linkedin, onTap: () {}),
                  ],
                ),
              ),

              // ---#---#---#---#---#---#---#---#---#---#---#
              Padding(
                padding: const EdgeInsets.symmetric(vertical: 10, horizontal: 20),
                child: Row(
                  mainAxisAlignment: MainAxisAlignment.spaceBetween,
                  children: [
                    SocialAuthButton(provider: SocialAuthProvider.google, onTap: () {}, outlinedLogo: true),
                    SocialAuthButton(provider: SocialAuthProvider.facebook, onTap: () {}, outlinedLogo: true),
                    SocialAuthButton(provider: SocialAuthProvider.twitter, onTap: () {}, outlinedLogo: true),
                    SocialAuthButton(provider: SocialAuthProvider.pinterest, onTap: () {}, outlinedLogo: true),
                    SocialAuthButton(provider: SocialAuthProvider.apple, onTap: () {}, outlinedLogo: true),
                    SocialAuthButton(
                      provider: SocialAuthProvider.linkedin,
                      onTap: () {},
                      outlinedLogo: true,
                    ),
                  ],
                ),
              ),
            ],
          ),
        ),
      ),
    );
  }
}
0
likes
150
points
83
downloads

Publisher

unverified uploader

Weekly Downloads

A customizable Flutter package to build sign-in and sign-up forms.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

another_flushbar, country_picker, flutter

More

Packages that depend on intelligentsia_forms