fancy_radio_button 0.0.1 copy "fancy_radio_button: ^0.0.1" to clipboard
fancy_radio_button: ^0.0.1 copied to clipboard

This package Help to easy way you make radio button with custom colors.

example/lib/main.dart

import 'package:example/src/FancyRadio/FancyRadio.dart';
import 'package:flutter/material.dart';

void main() {
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: HomePage(),
    );
  }
}


class HomePage extends StatefulWidget {
  @override
  _HomePageState createState() => _HomePageState();
}

class _HomePageState extends State<HomePage> {
  String selectedValue="";
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Column(
        children: [
          FancyRadio(
            label: ['One','Two','Three','Four'],
            labelValue: ['1','2','3','4'],
            activeColor: Colors.blue,
            activeBorderColor: Colors.blue,
            onChanged: (val){
              selectedValue=val;
            },
          )
        ],
      ),
    );
  }
}
3
likes
30
pub points
0%
popularity

Publisher

unverified uploader

This package Help to easy way you make radio button with custom colors.

Repository (GitHub)
View/report issues

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on fancy_radio_button