Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import 'package:flutter/material.dart';
- import 'package:grouped_buttons/grouped_buttons.dart';
- class RadioExample extends StatelessWidget {
- @override
- Widget build(BuildContext context) {
- return Scaffold(
- appBar: AppBar(
- title: Text('Radio Button Sample'),
- ),
- body: Column(
- mainAxisAlignment: MainAxisAlignment.start,
- children: <Widget>[
- RadioButtonGroup(
- labels: <String>[
- "Option 1",
- "Option 2",
- ],
- onSelected: (String selected) => print(selected)
- ),
- ],
- ),
- );
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement