fancy_radio_button 0.0.1
fancy_radio_button: ^0.0.1 copied to clipboard

Flutter Android iOS Linux macOS web Windows

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;
            },
          )
        ],
      ),
    );
  }
}
1
likes
90
pub points
29%
popularity

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

Repository (GitHub)
View/report issues

Documentation

API reference

Uploader

gautam.chauhan.5227@gmail.com

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on fancy_radio_button