folly_fields 0.16.0 copy "folly_fields: ^0.16.0" to clipboard
folly_fields: ^0.16.0 copied to clipboard

Basic form fields and utilities.

FollyFields #

FollyFields

Basic form fields and utilities. Maybe a humble boilerplate.

Please ⭐ to support the project.

Community #

Join our official Discord server

Flutter 3.0 - Break Changes #

Version 0.10.0 needs Flutter 3.0.0 and Dart 2.17.0

Example #

Demo #

https://edufolly.github.io/folly_fields/

Code #

https://github.com/edufolly/folly_fields/tree/main/example/lib

How to use #

pubspec.yaml #

# https://github.com/edufolly/folly_fields
folly_fields:
  git:
    url: git://github.com/edufolly/folly_fields.git
    ref: # lastest release

Use ref to avoid breaking changes. Check latest release.

config.dart #

https://github.com/edufolly/folly_fields/blob/main/example/lib/config.dart

class Config extends AbstractConfig {
  static final Config _singleton = Config._internal();

  Config._internal();

  factory Config() {
    return _singleton;
  }

/// Content...
}

main.dart #

https://github.com/edufolly/folly_fields/blob/main/example/lib/main.dart

void main() {
  WidgetsFlutterBinding.ensureInitialized();

  FollyFields.start(Config());

  runApp(MyApp());
}

MaterialApp #

https://github.com/edufolly/folly_fields/blob/main/example/lib/main.dart

class MyApp extends StatelessWidget {

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Folly Fields Example',
      theme: ThemeData(
        primarySwatch: Colors.deepOrange,
      ),
      home: MyHomePage(),
      localizationsDelegates: <LocalizationsDelegate<dynamic>>[
        GlobalMaterialLocalizations.delegate,
        GlobalWidgetsLocalizations.delegate,
        GlobalCupertinoLocalizations.delegate,
      ],
      supportedLocales: const <Locale>[
        Locale('pt', 'BR'),
      ],
    );
  }
}