multi_page_form 1.0.4 copy "multi_page_form: ^1.0.4" to clipboard
multi_page_form: ^1.0.4 copied to clipboard

This package helps you to create Multi Page Form in fewer liner of code.

example/main.dart

import 'package:flutter/material.dart';
import '../lib/multi_page_form.dart';

class Test extends StatefulWidget {
  _TestState createState() => _TestState();
}

class _TestState extends State<Test> {
  @override
  Widget build(BuildContext context) {
    return MultiPageForm(
      totalPage: 3,
      pageList: <Widget>[page1(), page2(), page3()],
      onFormSubmitted: () {
        print("Form is submitted");
      },
    );
  }
  Widget page1() {
    return Container(
      child: ListView(
        children: [
          Container(
            height: 20.0,
            width: 20.0,
            color: Colors.purple,
          )
        ],
      ),
    );
  }

  Widget page2() {
    return Container(
      child: ListView(
        children: [
          Container(
            height: 200.0,
            width: 200.0,
            color: Colors.yellow,
          )
        ],
      ),
    );
  }

  Widget page3() {
    return Container(
      child: ListView(
        children: [
          Container(
            height: 200.0,
            width: 200.0,
            color: Colors.green,
          )
        ],
      ),
    );
  }
}
8
likes
30
pub points
59%
popularity

Publisher

unverified uploader

This package helps you to create Multi Page Form in fewer liner of code.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on multi_page_form