Posts

Showing posts with the label Custom RadioButton Example

Custom RadioButton Example

Hi ,In this Flutter tutorial we are going to setup flutter custom radiobutton ,By default radiobutton is look very common and if you want any animated and different design then you need to create custom radiobutton. so lets start with project . import 'package:flutter/material.dart'; void main() {   runApp(new MaterialApp(     home: new CustomRadio(),   )); } class CustomRadio extends StatefulWidget {   @override   createState() {     return new CustomRadioState();   } } class CustomRadioState extends State<CustomRadio> {   List<RadioModel> sampleData = new List<RadioModel>();   @override   void initState() {     super.initState();     sampleData.add(new RadioModel(false, 'A', 'April 18'));     sampleData.add(new RadioModel(false, 'B', 'April 17'));     sampleData.add(new RadioModel(false, 'C', 'April 16'));     sampleData.add(new RadioModel(false, 'D', 'April 15'));