radio_button_group 1.0.0 copy "radio_button_group: ^1.0.0" to clipboard
radio_button_group: ^1.0.0 copied to clipboard

The major functionality of this package is to act like the input element with type="radio" from HTML.

example/lib/main.dart

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

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

class MyApp extends StatelessWidget {
  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: MyHomePage(),
    );
  }
}

class MyHomePage extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text('Radio Group Button Demo'),
      ),
      body: Center(
        child: Column(
          mainAxisAlignment: MainAxisAlignment.center,
          children: <Widget>[
            RadioButtonGroup(
              titles: [
                'this',
                'is',
                'a',
                'demo',
              ],
            )
          ],
        ),
      ),
    );
  }
}
0
likes
30
pub points
0%
popularity

Publisher

unverified uploader

The major functionality of this package is to act like the input element with type="radio" from HTML.

Homepage

License

BSD-3-Clause (LICENSE)

Dependencies

flutter

More

Packages that depend on radio_button_group