form_floating_action_button 2.0.0 copy "form_floating_action_button: ^2.0.0" to clipboard
form_floating_action_button: ^2.0.0 copied to clipboard

outdated

A Floating Action Button that can be used in forms to provide loading and validation feedback

example/lib/main.dart

import 'package:flutter/material.dart';
import 'src/page_form_validate.dart';
import 'src/page_on_validate.dart';

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

class MyApp extends StatelessWidget {
  MyApp({
    Key? key,
  }) : super(
          key: key,
        );

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Form FAB Example',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: MyHomePage(title: 'Form FAB Example'),
    );
  }
}

class MyHomePage extends StatelessWidget {
  MyHomePage({Key? key, required this.title}) : super(key: key);

  final String title;

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text(title),
      ),
      body: Center(
        child: Column(
          mainAxisAlignment: MainAxisAlignment.center,
          children: <Widget>[
            ElevatedButton(
              onPressed: () {
                Navigator.of(context).push(
                  MaterialPageRoute(
                    builder: (context) {
                      return PageOnValidate();
                    },
                  ),
                );
              },
              child: Text('On Validate Example'),
            ),
            SizedBox(height: 16.0),
            ElevatedButton(
              onPressed: () {
                Navigator.of(context).push(
                  MaterialPageRoute(
                    builder: (context) {
                      return PageFormValidate();
                    },
                  ),
                );
              },
              child: Text('Form Validate Example'),
            ),
          ],
        ),
      ),
    );
  }
}
19
likes
0
pub points
71%
popularity

Publisher

verified publisherpeifferinnovations.com

A Floating Action Button that can be used in forms to provide loading and validation feedback

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter, vector_math

More

Packages that depend on form_floating_action_button