fform 5.1.0-dev copy "fform: ^5.1.0-dev" to clipboard
fform: ^5.1.0-dev copied to clipboard

FForm is a dart package to build forms with a lot of fields and validations.

example/lib/main.dart

import 'package:example/src/screens/create_quest_screen.dart';
import 'package:example/src/screens/exception_multi_screen.dart';
import 'package:example/src/screens/login_screen.dart';
import 'package:example/src/screens/multi_screen.dart';
import 'package:fform/fform.dart';
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';

class MyFFormObserver extends FFormObserver {
  @override
  void check(FForm form) {
    if (kDebugMode) {
      print('Form has been checked and is ${form.isValid ? 'valid' : 'invalid'}');
    }
  }
}

void main() {
  FForm.observer = MyFFormObserver();
  runApp(const MyApp());
}

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

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'FForm Demo',
      theme: ThemeData(
        primarySwatch: Colors.green,
      ),
      routes: {
        '/': (context) => const LoginScreen(),
        '/create-quest': (context) => const CreateQuestScreen(),
        '/draw': (context) => const MultiScreen(),
        '/fform-exception': (context) => const ExceptionMultiScreen(),
      },
    );
  }
}
176
likes
0
points
271
downloads

Publisher

verified publishercontributors.info

Weekly Downloads

FForm is a dart package to build forms with a lot of fields and validations.

Homepage
Repository (GitHub)
View/report issues

Topics

#form #validation #fields

License

unknown (license)

Dependencies

collection, flutter, meta

More

Packages that depend on fform