bform 0.3.0 copy "bform: ^0.3.0" to clipboard
bform: ^0.3.0 copied to clipboard

Package to help you create beautiful forms widgets.

example/lib/main.dart

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

import 'borm_obj_impl.dart';

void main() {
  runApp(
    MaterialApp(
      home: Scaffold(
        appBar: BformAppbar(
          title: 'Bform Example',
          color: Colors.blueGrey,
          icon: Icons.menu,
        ),
        body: SafeArea(child: MyApp()),
      ),
    ),
  );
}

class MyApp extends StatefulWidget {
  const MyApp({Key? key}) : super(key: key);

  @override
  State<MyApp> createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  @override
  Widget build(BuildContext context) {
    return SingleChildScrollView(
      padding: const EdgeInsets.all(10.0),
      child: Column(
        children: [
          BformForm(
            background: Colors.white,
            width: MediaQuery.of(context).size.width - 20,
            border: Border.all(color: Colors.red),
            child: Column(
              children: [
                const SizedBox(height: 30),
                const BformTextInput(label: 'Input Example'),
                const SizedBox(height: 30),
                BformGroupRadio(
                  label: 'Select Title',
                  listItems: const [
                    BformObjImpl(1),
                    BformObjImpl(2),
                    BformObjImpl(3),
                  ],
                  item: const BformObjImpl(1),
                  onChange: (_) {},
                  color: Colors.orange,
                ),
                const SizedBox(height: 30),
                Align(
                  alignment: Alignment.centerRight,
                  child: BformButton(
                    onPressed: () {},
                    colors: [Colors.green, Colors.yellow, Colors.red],
                    style: BformButtonStyle.highlighted,
                    label: ('Examble Button'),
                  ),
                ),
              ],
            ),
          ),
          const SizedBox(height: 30),
          BformTableText(
              titles: const ['Title 1', 'Title 2'],
              listElements: [
                ['Row 1 Element 1', 'Row 1 Element 2'],
                ['Row 2 Element 1', 'Row 2 Element 2'],
                ['Row 3 Element 1', 'Row 3 Element 2'],
              ],
            ),
        ],
      ),
    );
  }
}
4
likes
0
pub points
16%
popularity

Publisher

verified publishergabrielvieira.ao

Package to help you create beautiful forms widgets.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on bform