{"id":7389,"date":"2021-08-16T05:50:48","date_gmt":"2021-08-16T05:50:48","guid":{"rendered":"https:\/\/www.getwidget.dev\/blogs\/flutter-radiolisttile\/"},"modified":"2025-01-10T10:06:02","modified_gmt":"2025-01-10T10:06:02","slug":"flutter-radiolisttile","status":"publish","type":"post","link":"https:\/\/www.getwidget.dev\/blog\/flutter-radiolisttile\/","title":{"rendered":"Flutter RadioListTile &#8211; A widget that has ListTile and a radio button in a row"},"content":{"rendered":"<p><strong>Flutter RadioListTile <\/strong>basically contains a single row that has a title, subtitle, and a trailing radio button. It is a ListTile that contains a radio button<\/p>\n<h3 id=\"%E2%80%8Cflutter-radiolisttile-widget\">\u200cFlutter RadioListTile Widget<\/h3>\n<p><strong>Flutter RadioListTile <\/strong>displays a title, subtitle, or description and a radio button horizontally. It allows the user to choose only one option from the list. The suffix radio button is mainly defined through the trailing parameter. <\/p>\n<p>By default, <strong>Flutter RadioListTile <\/strong>can show two lines of text. The <strong>title<\/strong> and the <strong>subtitle<\/strong>. As the first line of text is not optional but the second line of text or the subtitle is optional. The texture of the leading and trailing widgets can be modified according to the properties given.<\/p>\n<p>So, are you ready to make use of this widget package in the Flutter application? If so, then let&#8217;s quickly jump into the usage and the ways a RadioListTile can be modified and used to make user-friendly apps. Here I am going to use an open-source UI Library known as <strong>GetWidget <\/strong>to build this RadioListTile <a href=\"https:\/\/www.getwidget.dev\/blog\/what-is-widget-in-flutter\/\"  data-wpil-monitor-id=\"223\">widget in Flutter<\/a>.<\/p>\n<h3 id=\"getwidget-radiolisttile\">GetWidget RadioListTile<\/h3>\n<p><strong>GFRadioListtile<\/strong> is a <strong>Flutter RadioListTile<\/strong>. In this widget, we can design a title, subtitle, and that has a trailing radio button widget. It has customization options which is an easy way to handle it as per the application and its requirement. The <strong>GetWidget RadioListTile<\/strong> displays the list of items in a card fashion.<\/p>\n<h3 id=\"how-to-start\">How to Start:<\/h3>\n<p>Now here is the guide about how we should start developing the <strong>GFRadioListTile <\/strong>Widget with the use of the <strong>GetWidget<\/strong> UI Library.<\/p>\n<p><a href=\"https:\/\/docs.getwidget.dev\/getting-started\" target=\"_blank\" rel=\"noopener\"><strong>Getting started<\/strong><\/a> will guide you on how to start building a beautiful flutter application with the <strong>GetWidget<\/strong> UI library. You have to install the package from <strong>pub.dev<\/strong>, import the package in your Flutter project.<\/p>\n<blockquote><p><em>Install Package from pub.dev :<\/em><\/p><\/blockquote>\n<p><a href=\"https:\/\/pub.dev\/packages\/getwidget\" target=\"_blank\" rel=\"noopener\"><strong>https:\/\/pub.dev\/packages\/getwidget<\/strong><\/a><\/p>\n<h3 id=\"import-full-package\">Import full package:<\/h3>\n<p>import &#8216;package:getwidget\/getwidget.dart&#8217;;<\/p>\n<p><strong>Note: dependencies: getwidget: ^ 2.0.4<\/strong><\/p>\n<blockquote><p><em>Keep playing with the pre-built UI components.<\/em><\/p><\/blockquote>\n<p><strong>GFRadioListTile <\/strong>is a<strong> Flutter RadioBoxListTile<\/strong> that has a list of items wherein the user can check or uncheck only one item in the list at a time. <strong>GFRadioBoxListTile<\/strong> can also be positioned right or left of the screen according to the need. The below code gives a simple example with an avatar on the left side as shown in the below image.<\/p>\n<figure class=\"kg-card kg-image-card\"><img decoding=\"async\" src=\"data:image\/gif;base64,R0lGODlhAQABAIAAAAAAAP\/\/\/yH5BAEAAAAALAAAAAABAAEAAAIBRAA7\" data-src=\"https:\/\/tzsjdxwi.cdn.imgeng.in\/2021\/08\/Radiolist_tile_3x_0KLlfYPXn.png\" class=\"kg-image lazyload\" alt=\"\" loading=\"lazy\" width=\"800\" height=\"140\"><noscript><img decoding=\"async\" src=\"https:\/\/tzsjdxwi.cdn.imgeng.in\/2021\/08\/Radiolist_tile_3x_0KLlfYPXn.png\" class=\"kg-image lazyload\" alt=\"\" loading=\"lazy\" width=\"800\" height=\"140\"><\/noscript><\/figure>\n<pre><code class=\"language-javascript\">import 'package:getwidget\/getwidget.dart';\n\nint groupValue = 0;\n\nGFRadioListTile(\n  titleText: 'GetWidget Library',\n  subTitleText: 'This is a open source UI library.',\n  avatar: GFAvatar(\n    backgroundImage: AssetImage('Assets image here'),\n  ),\n  size: 25,\n  activeBorderColor: Colors.green,\n  focusColor: Colors.green,\n  type: GFRadioType.square,\n  value: 0,\n  groupValue: groupValue,\n  onChanged: (value) {\n    setState(() {\n      groupValue = value;\n    });\n  },\n  inactiveIcon: null,\n),\nGFRadioListTile(\n  titleText: 'GetWidget Library',\n  subtitleText: 'This is a open source UI library.',\n  avatar: GFAvatar(\n    backgroundImage: AssetImage('Assets image here'),\n  ),\n  size: 25,\n  activeBorderColor: Colors.green,\n  focusColor: Colors.green,\n  type: GFRadioType.square,\n  value: 1,\n  groupValue: groupValue,\n  onChanged: (value) {\n    setState(() {\n      groupValue = value;\n    });\n  },\n  inactiveIcon: null,\n),\n<\/code><\/pre>\n<h3 id=\"gfradiolisttile-custom-properties\"><strong>GFRadioListTile<\/strong> Custom Properties<\/h3>\n<p>The look and feel of the <strong>GFRadioListTile<\/strong> can be customized using the GFRadioListTile properties.<\/p>\n<table style=\"font-family: \"Nunito Sans\", sans-serif; border-collapse: collapse; margin: 1rem 0px; display: block; overflow-x: auto; color: rgb(44, 62, 80); font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;\">\n<thead style=\"font-family: \"Nunito Sans\", sans-serif;\">\n<tr style=\"font-family: \"Nunito Sans\", sans-serif; border-top: 1px solid rgb(223, 226, 229);\">\n<th style=\"font-family: \"Nunito Sans\", sans-serif; border: 1px solid rgb(223, 226, 229); padding: 0.6em 1em; text-align: left;\">Name<\/th>\n<th style=\"font-family: \"Nunito Sans\", sans-serif; border: 1px solid rgb(223, 226, 229); padding: 0.6em 1em; text-align: left;\">Description<\/th>\n<\/tr>\n<\/thead>\n<tbody style=\"font-family: \"Nunito Sans\", sans-serif;\">\n<tr style=\"font-family: \"Nunito Sans\", sans-serif; border-top: 1px solid rgb(223, 226, 229);\">\n<td style=\"font-family: \"Nunito Sans\", sans-serif; border: 1px solid rgb(223, 226, 229); padding: 0.6em 1em; text-align: left;\"><strong style=\"font-family: \"Nunito Sans\", sans-serif;\">type<\/strong><\/td>\n<td style=\"font-family: \"Nunito Sans\", sans-serif; border: 1px solid rgb(223, 226, 229); padding: 0.6em 1em; text-align: left;\">type of [GFRadioType] which is of four types is basic, suaure, circular, and custom<\/td>\n<\/tr>\n<tr style=\"font-family: \"Nunito Sans\", sans-serif; border-top: 1px solid rgb(223, 226, 229); background-color: rgb(246, 248, 250);\">\n<td style=\"font-family: \"Nunito Sans\", sans-serif; border: 1px solid rgb(223, 226, 229); padding: 0.6em 1em; text-align: left;\"><strong style=\"font-family: \"Nunito Sans\", sans-serif;\">size<\/strong><\/td>\n<td style=\"font-family: \"Nunito Sans\", sans-serif; border: 1px solid rgb(223, 226, 229); padding: 0.6em 1em; text-align: left;\">type of [double] which is GFSize ie, small, medium, and large and can use any double value<\/td>\n<\/tr>\n<tr style=\"font-family: \"Nunito Sans\", sans-serif; border-top: 1px solid rgb(223, 226, 229);\">\n<td style=\"font-family: \"Nunito Sans\", sans-serif; border: 1px solid rgb(223, 226, 229); padding: 0.6em 1em; text-align: left;\"><strong style=\"font-family: \"Nunito Sans\", sans-serif;\">radioColor<\/strong><\/td>\n<td style=\"font-family: \"Nunito Sans\", sans-serif; border: 1px solid rgb(223, 226, 229); padding: 0.6em 1em; text-align: left;\">type pf [Color] used to change the checkcolor when the radio button is active<\/td>\n<\/tr>\n<tr style=\"font-family: \"Nunito Sans\", sans-serif; border-top: 1px solid rgb(223, 226, 229); background-color: rgb(246, 248, 250);\">\n<td style=\"font-family: \"Nunito Sans\", sans-serif; border: 1px solid rgb(223, 226, 229); padding: 0.6em 1em; text-align: left;\"><strong style=\"font-family: \"Nunito Sans\", sans-serif;\">activeBgColor<\/strong><\/td>\n<td style=\"font-family: \"Nunito Sans\", sans-serif; border: 1px solid rgb(223, 226, 229); padding: 0.6em 1em; text-align: left;\">type of [Color] used to change the backgroundColor of the active radio button<\/td>\n<\/tr>\n<tr style=\"font-family: \"Nunito Sans\", sans-serif; border-top: 1px solid rgb(223, 226, 229);\">\n<td style=\"font-family: \"Nunito Sans\", sans-serif; border: 1px solid rgb(223, 226, 229); padding: 0.6em 1em; text-align: left;\"><strong style=\"font-family: \"Nunito Sans\", sans-serif;\">inactiveBgColor<\/strong><\/td>\n<td style=\"font-family: \"Nunito Sans\", sans-serif; border: 1px solid rgb(223, 226, 229); padding: 0.6em 1em; text-align: left;\">type of [Color] used to change the backgroundColor of the inactive radio button<\/td>\n<\/tr>\n<tr style=\"font-family: \"Nunito Sans\", sans-serif; border-top: 1px solid rgb(223, 226, 229); background-color: rgb(246, 248, 250);\">\n<td style=\"font-family: \"Nunito Sans\", sans-serif; border: 1px solid rgb(223, 226, 229); padding: 0.6em 1em; text-align: left;\"><strong style=\"font-family: \"Nunito Sans\", sans-serif;\">activeBorderColor<\/strong><\/td>\n<td style=\"font-family: \"Nunito Sans\", sans-serif; border: 1px solid rgb(223, 226, 229); padding: 0.6em 1em; text-align: left;\">type of [Color] used to change the border color of the active radio button<\/td>\n<\/tr>\n<tr style=\"font-family: \"Nunito Sans\", sans-serif; border-top: 1px solid rgb(223, 226, 229);\">\n<td style=\"font-family: \"Nunito Sans\", sans-serif; border: 1px solid rgb(223, 226, 229); padding: 0.6em 1em; text-align: left;\"><strong style=\"font-family: \"Nunito Sans\", sans-serif;\">inactiveBorderColor<\/strong><\/td>\n<td style=\"font-family: \"Nunito Sans\", sans-serif; border: 1px solid rgb(223, 226, 229); padding: 0.6em 1em; text-align: left;\">type of [Color] used to change the border color of the inactive radio button<\/td>\n<\/tr>\n<tr style=\"font-family: \"Nunito Sans\", sans-serif; border-top: 1px solid rgb(223, 226, 229); background-color: rgb(246, 248, 250);\">\n<td style=\"font-family: \"Nunito Sans\", sans-serif; border: 1px solid rgb(223, 226, 229); padding: 0.6em 1em; text-align: left;\"><strong style=\"font-family: \"Nunito Sans\", sans-serif;\">onChanged<\/strong><\/td>\n<td style=\"font-family: \"Nunito Sans\", sans-serif; border: 1px solid rgb(223, 226, 229); padding: 0.6em 1em; text-align: left;\">Called when the user checks or unchecks the radio button<\/td>\n<\/tr>\n<tr style=\"font-family: \"Nunito Sans\", sans-serif; border-top: 1px solid rgb(223, 226, 229);\">\n<td style=\"font-family: \"Nunito Sans\", sans-serif; border: 1px solid rgb(223, 226, 229); padding: 0.6em 1em; text-align: left;\"><strong style=\"font-family: \"Nunito Sans\", sans-serif;\">position<\/strong><\/td>\n<td style=\"font-family: \"Nunito Sans\", sans-serif; border: 1px solid rgb(223, 226, 229); padding: 0.6em 1em; text-align: left;\">allows the user to set the position of the radiobutton to start or end<\/td>\n<\/tr>\n<tr style=\"font-family: \"Nunito Sans\", sans-serif; border-top: 1px solid rgb(223, 226, 229); background-color: rgb(246, 248, 250);\">\n<td style=\"font-family: \"Nunito Sans\", sans-serif; border: 1px solid rgb(223, 226, 229); padding: 0.6em 1em; text-align: left;\"><strong style=\"font-family: \"Nunito Sans\", sans-serif;\">activeIcon<\/strong><\/td>\n<td style=\"font-family: \"Nunito Sans\", sans-serif; border: 1px solid rgb(223, 226, 229); padding: 0.6em 1em; text-align: left;\">type of Widget used to change the radio button&#8217;s active icon<\/td>\n<\/tr>\n<tr style=\"font-family: \"Nunito Sans\", sans-serif; border-top: 1px solid rgb(223, 226, 229);\">\n<td style=\"font-family: \"Nunito Sans\", sans-serif; border: 1px solid rgb(223, 226, 229); padding: 0.6em 1em; text-align: left;\"><strong style=\"font-family: \"Nunito Sans\", sans-serif;\">inactiveIcon<\/strong><\/td>\n<td style=\"font-family: \"Nunito Sans\", sans-serif; border: 1px solid rgb(223, 226, 229); padding: 0.6em 1em; text-align: left;\">type of [Widget] used to change the radio button&#8217;s inactive icon<\/td>\n<\/tr>\n<tr style=\"font-family: \"Nunito Sans\", sans-serif; border-top: 1px solid rgb(223, 226, 229); background-color: rgb(246, 248, 250);\">\n<td style=\"font-family: \"Nunito Sans\", sans-serif; border: 1px solid rgb(223, 226, 229); padding: 0.6em 1em; text-align: left;\"><strong style=\"font-family: \"Nunito Sans\", sans-serif;\">customBgColor<\/strong><\/td>\n<td style=\"font-family: \"Nunito Sans\", sans-serif; border: 1px solid rgb(223, 226, 229); padding: 0.6em 1em; text-align: left;\">type of [Color] used to change the background color of the custom active radio button only<\/td>\n<\/tr>\n<tr style=\"font-family: \"Nunito Sans\", sans-serif; border-top: 1px solid rgb(223, 226, 229);\">\n<td style=\"font-family: \"Nunito Sans\", sans-serif; border: 1px solid rgb(223, 226, 229); padding: 0.6em 1em; text-align: left;\"><strong style=\"font-family: \"Nunito Sans\", sans-serif;\">autofocus<\/strong><\/td>\n<td style=\"font-family: \"Nunito Sans\", sans-serif; border: 1px solid rgb(223, 226, 229); padding: 0.6em 1em; text-align: left;\">on true state, this widget will be selected as the initial focus when no other node in its scope is currently focused<\/td>\n<\/tr>\n<tr style=\"font-family: \"Nunito Sans\", sans-serif; border-top: 1px solid rgb(223, 226, 229); background-color: rgb(246, 248, 250);\">\n<td style=\"font-family: \"Nunito Sans\", sans-serif; border: 1px solid rgb(223, 226, 229); padding: 0.6em 1em; text-align: left;\"><strong style=\"font-family: \"Nunito Sans\", sans-serif;\">focusNode<\/strong><\/td>\n<td style=\"font-family: \"Nunito Sans\", sans-serif; border: 1px solid rgb(223, 226, 229); padding: 0.6em 1em; text-align: left;\">an optional focus node to use as the focus node for this widget.<\/td>\n<\/tr>\n<tr style=\"font-family: \"Nunito Sans\", sans-serif; border-top: 1px solid rgb(223, 226, 229);\">\n<td style=\"font-family: \"Nunito Sans\", sans-serif; border: 1px solid rgb(223, 226, 229); padding: 0.6em 1em; text-align: left;\"><strong style=\"font-family: \"Nunito Sans\", sans-serif;\">value<\/strong><\/td>\n<td style=\"font-family: \"Nunito Sans\", sans-serif; border: 1px solid rgb(223, 226, 229); padding: 0.6em 1em; text-align: left;\">The value represented by this radio button.<\/td>\n<\/tr>\n<tr style=\"font-family: \"Nunito Sans\", sans-serif; border-top: 1px solid rgb(223, 226, 229); background-color: rgb(246, 248, 250);\">\n<td style=\"font-family: \"Nunito Sans\", sans-serif; border: 1px solid rgb(223, 226, 229); padding: 0.6em 1em; text-align: left;\"><strong style=\"font-family: \"Nunito Sans\", sans-serif;\">groupValue<\/strong><\/td>\n<td style=\"font-family: \"Nunito Sans\", sans-serif; border: 1px solid rgb(223, 226, 229); padding: 0.6em 1em; text-align: left;\">The currently selected value for a group of radio buttons. Radio button is considered selected if its [value] matches the [groupValue].<\/td>\n<\/tr>\n<tr style=\"font-family: \"Nunito Sans\", sans-serif; border-top: 1px solid rgb(223, 226, 229);\">\n<td style=\"font-family: \"Nunito Sans\", sans-serif; border: 1px solid rgb(223, 226, 229); padding: 0.6em 1em; text-align: left;\"><strong style=\"font-family: \"Nunito Sans\", sans-serif;\">toggleable<\/strong><\/td>\n<td style=\"font-family: \"Nunito Sans\", sans-serif; border: 1px solid rgb(223, 226, 229); padding: 0.6em 1em; text-align: left;\">sets the radio value<\/td>\n<\/tr>\n<tr style=\"font-family: \"Nunito Sans\", sans-serif; border-top: 1px solid rgb(223, 226, 229); background-color: rgb(246, 248, 250);\">\n<td style=\"font-family: \"Nunito Sans\", sans-serif; border: 1px solid rgb(223, 226, 229); padding: 0.6em 1em; text-align: left;\"><strong style=\"font-family: \"Nunito Sans\", sans-serif;\">titleText<\/strong><\/td>\n<td style=\"font-family: \"Nunito Sans\", sans-serif; border: 1px solid rgb(223, 226, 229); padding: 0.6em 1em; text-align: left;\">type of [String] used to pass text, alternative to title property and gets higher priority than the title<\/td>\n<\/tr>\n<tr style=\"font-family: \"Nunito Sans\", sans-serif; border-top: 1px solid rgb(223, 226, 229);\">\n<td style=\"font-family: \"Nunito Sans\", sans-serif; border: 1px solid rgb(223, 226, 229); padding: 0.6em 1em; text-align: left;\"><strong style=\"font-family: \"Nunito Sans\", sans-serif;\">subTitleText<\/strong><\/td>\n<td style=\"font-family: \"Nunito Sans\", sans-serif; border: 1px solid rgb(223, 226, 229); padding: 0.6em 1em; text-align: left;\">type of [String] used to pass text, alternative to subtitle property and gets higher priority than the subtitle<\/td>\n<\/tr>\n<tr style=\"font-family: \"Nunito Sans\", sans-serif; border-top: 1px solid rgb(223, 226, 229); background-color: rgb(246, 248, 250);\">\n<td style=\"font-family: \"Nunito Sans\", sans-serif; border: 1px solid rgb(223, 226, 229); padding: 0.6em 1em; text-align: left;\"><strong style=\"font-family: \"Nunito Sans\", sans-serif;\">color<\/strong><\/td>\n<td style=\"font-family: \"Nunito Sans\", sans-serif; border: 1px solid rgb(223, 226, 229); padding: 0.6em 1em; text-align: left;\">The GFListTile&#8217;s background color. Can be given [Color] or [GFColors]<\/td>\n<\/tr>\n<tr style=\"font-family: \"Nunito Sans\", sans-serif; border-top: 1px solid rgb(223, 226, 229);\">\n<td style=\"font-family: \"Nunito Sans\", sans-serif; border: 1px solid rgb(223, 226, 229); padding: 0.6em 1em; text-align: left;\"><strong style=\"font-family: \"Nunito Sans\", sans-serif;\">avatar<\/strong><\/td>\n<td style=\"font-family: \"Nunito Sans\", sans-serif; border: 1px solid rgb(223, 226, 229); padding: 0.6em 1em; text-align: left;\">type of [Widget] or [GFAvatar] used to create a rounded user profile<\/td>\n<\/tr>\n<tr style=\"font-family: \"Nunito Sans\", sans-serif; border-top: 1px solid rgb(223, 226, 229); background-color: rgb(246, 248, 250);\">\n<td style=\"font-family: \"Nunito Sans\", sans-serif; border: 1px solid rgb(223, 226, 229); padding: 0.6em 1em; text-align: left;\"><strong style=\"font-family: \"Nunito Sans\", sans-serif;\">title<\/strong><\/td>\n<td style=\"font-family: \"Nunito Sans\", sans-serif; border: 1px solid rgb(223, 226, 229); padding: 0.6em 1em; text-align: left;\">The title to display inside the [GFListTile].<\/td>\n<\/tr>\n<tr style=\"font-family: \"Nunito Sans\", sans-serif; border-top: 1px solid rgb(223, 226, 229);\">\n<td style=\"font-family: \"Nunito Sans\", sans-serif; border: 1px solid rgb(223, 226, 229); padding: 0.6em 1em; text-align: left;\"><strong style=\"font-family: \"Nunito Sans\", sans-serif;\">subTitle<\/strong><\/td>\n<td style=\"font-family: \"Nunito Sans\", sans-serif; border: 1px solid rgb(223, 226, 229); padding: 0.6em 1em; text-align: left;\">The subtitle to display inside the [GFListTile].<\/td>\n<\/tr>\n<tr style=\"font-family: \"Nunito Sans\", sans-serif; border-top: 1px solid rgb(223, 226, 229); background-color: rgb(246, 248, 250);\">\n<td style=\"font-family: \"Nunito Sans\", sans-serif; border: 1px solid rgb(223, 226, 229); padding: 0.6em 1em; text-align: left;\"><strong style=\"font-family: \"Nunito Sans\", sans-serif;\">description<\/strong><\/td>\n<td style=\"font-family: \"Nunito Sans\", sans-serif; border: 1px solid rgb(223, 226, 229); padding: 0.6em 1em; text-align: left;\">The description to display inside the [GFListTile].<\/td>\n<\/tr>\n<tr style=\"font-family: \"Nunito Sans\", sans-serif; border-top: 1px solid rgb(223, 226, 229);\">\n<td style=\"font-family: \"Nunito Sans\", sans-serif; border: 1px solid rgb(223, 226, 229); padding: 0.6em 1em; text-align: left;\"><strong style=\"font-family: \"Nunito Sans\", sans-serif;\">icon<\/strong><\/td>\n<td style=\"font-family: \"Nunito Sans\", sans-serif; border: 1px solid rgb(223, 226, 229); padding: 0.6em 1em; text-align: left;\">The icon to display inside the [GFListTile].<\/td>\n<\/tr>\n<tr style=\"font-family: \"Nunito Sans\", sans-serif; border-top: 1px solid rgb(223, 226, 229); background-color: rgb(246, 248, 250);\">\n<td style=\"font-family: \"Nunito Sans\", sans-serif; border: 1px solid rgb(223, 226, 229); padding: 0.6em 1em; text-align: left;\"><strong style=\"font-family: \"Nunito Sans\", sans-serif;\">margin<\/strong><\/td>\n<td style=\"font-family: \"Nunito Sans\", sans-serif; border: 1px solid rgb(223, 226, 229); padding: 0.6em 1em; text-align: left;\">defines the margin of GFListTile<\/td>\n<\/tr>\n<tr style=\"font-family: \"Nunito Sans\", sans-serif; border-top: 1px solid rgb(223, 226, 229);\">\n<td style=\"font-family: \"Nunito Sans\", sans-serif; border: 1px solid rgb(223, 226, 229); padding: 0.6em 1em; text-align: left;\"><strong style=\"font-family: \"Nunito Sans\", sans-serif;\">padding<\/strong><\/td>\n<td style=\"font-family: \"Nunito Sans\", sans-serif; border: 1px solid rgb(223, 226, 229); padding: 0.6em 1em; text-align: left;\">defines the padding of GFListTile<\/td>\n<\/tr>\n<tr style=\"font-family: \"Nunito Sans\", sans-serif; border-top: 1px solid rgb(223, 226, 229); background-color: rgb(246, 248, 250);\">\n<td style=\"font-family: \"Nunito Sans\", sans-serif; border: 1px solid rgb(223, 226, 229); padding: 0.6em 1em; text-align: left;\"><strong style=\"font-family: \"Nunito Sans\", sans-serif;\">enabled<\/strong><\/td>\n<td style=\"font-family: \"Nunito Sans\", sans-serif; border: 1px solid rgb(223, 226, 229); padding: 0.6em 1em; text-align: left;\">\n<p style=\"font-family: \"Nunito Sans\", sans-serif; line-height: 1.7;\">Whether this list tile is interactive. If false, this list tile is styled with the disabled color from the current [Theme] and the [onTap] and [onLongPress] callbacks are<\/p>\n<p style=\"font-family: \"Nunito Sans\", sans-serif; line-height: 1.7;\">inoperative.<\/p>\n<\/td>\n<\/tr>\n<tr style=\"font-family: \"Nunito Sans\", sans-serif; border-top: 1px solid rgb(223, 226, 229);\">\n<td style=\"font-family: \"Nunito Sans\", sans-serif; border: 1px solid rgb(223, 226, 229); padding: 0.6em 1em; text-align: left;\"><strong style=\"font-family: \"Nunito Sans\", sans-serif;\">onTap<\/strong><\/td>\n<td style=\"font-family: \"Nunito Sans\", sans-serif; border: 1px solid rgb(223, 226, 229); padding: 0.6em 1em; text-align: left;\">Called when the user taps this list tile. Inoperative if [enabled] is false.<\/td>\n<\/tr>\n<tr style=\"font-family: \"Nunito Sans\", sans-serif; border-top: 1px solid rgb(223, 226, 229); background-color: rgb(246, 248, 250);\">\n<td style=\"font-family: \"Nunito Sans\", sans-serif; border: 1px solid rgb(223, 226, 229); padding: 0.6em 1em; text-align: left;\"><strong style=\"font-family: \"Nunito Sans\", sans-serif;\">onLongPress<\/strong><\/td>\n<td style=\"font-family: \"Nunito Sans\", sans-serif; border: 1px solid rgb(223, 226, 229); padding: 0.6em 1em; text-align: left;\">Called when the user long-presses on this list tile. Inoperative if [enabled] is false.<\/td>\n<\/tr>\n<tr style=\"font-family: \"Nunito Sans\", sans-serif; border-top: 1px solid rgb(223, 226, 229);\">\n<td style=\"font-family: \"Nunito Sans\", sans-serif; border: 1px solid rgb(223, 226, 229); padding: 0.6em 1em; text-align: left;\"><strong style=\"font-family: \"Nunito Sans\", sans-serif;\">selected<\/strong><\/td>\n<td style=\"font-family: \"Nunito Sans\", sans-serif; border: 1px solid rgb(223, 226, 229); padding: 0.6em 1em; text-align: left;\">\n<p style=\"font-family: \"Nunito Sans\", sans-serif; line-height: 1.7;\">If this tile is also [enabled] then icons and text are rendered with the same color.<\/p>\n<p style=\"font-family: \"Nunito Sans\", sans-serif; line-height: 1.7;\">By default the selected color is the theme&#8217;s primary color. The selected color can be overridden with a [ListTileTheme].<\/p>\n<\/td>\n<\/tr>\n<tr style=\"font-family: \"Nunito Sans\", sans-serif; border-top: 1px solid rgb(223, 226, 229); background-color: rgb(246, 248, 250);\">\n<td style=\"font-family: \"Nunito Sans\", sans-serif; border: 1px solid rgb(223, 226, 229); padding: 0.6em 1em; text-align: left;\"><strong style=\"font-family: \"Nunito Sans\", sans-serif;\">focusColor<\/strong><\/td>\n<td style=\"font-family: \"Nunito Sans\", sans-serif; border: 1px solid rgb(223, 226, 229); padding: 0.6em 1em; text-align: left;\">The color for the tile&#8217;s [Material] when it has the input focus.<\/td>\n<\/tr>\n<tr style=\"font-family: \"Nunito Sans\", sans-serif; border-top: 1px solid rgb(223, 226, 229);\">\n<td style=\"font-family: \"Nunito Sans\", sans-serif; border: 1px solid rgb(223, 226, 229); padding: 0.6em 1em; text-align: left;\"><strong style=\"font-family: \"Nunito Sans\", sans-serif;\">hoverColor<\/strong><\/td>\n<td style=\"font-family: \"Nunito Sans\", sans-serif; border: 1px solid rgb(223, 226, 229); padding: 0.6em 1em; text-align: left;\">The color for the tile&#8217;s [Material] when a pointer is hovering over it.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<figure class=\"kg-card kg-bookmark-card\"><a class=\"kg-bookmark-container\" href=\"https:\/\/docs.getwidget.dev\/getting-started\" target=\"_blank\" rel=\"noopener\"><\/p>\n<div class=\"kg-bookmark-content\">\n<div class=\"kg-bookmark-title\">Getting Started<\/div>\n<div class=\"kg-bookmark-description\">GetWidget is a Flutter open-source library that comes with pre-build 1000+ UI components. The library is built to make flutter development faster and more enjoyable.<\/div>\n<div class=\"kg-bookmark-metadata\"><img decoding=\"async\" class=\"kg-bookmark-icon lazyload\" src=\"data:image\/gif;base64,R0lGODlhAQABAIAAAAAAAP\/\/\/yH5BAEAAAAALAAAAAABAAEAAAIBRAA7\" data-src=\"https:\/\/gblobscdn.gitbook.com\/spaces%2F-LvKegU8SBuWnETMfqrz%2Favatar.png?alt=media\" alt=\"\"><noscript><img decoding=\"async\" class=\"kg-bookmark-icon lazyload\" src=\"https:\/\/gblobscdn.gitbook.com\/spaces%2F-LvKegU8SBuWnETMfqrz%2Favatar.png?alt=media\" alt=\"\"><\/noscript><span class=\"kg-bookmark-author\">Getwidget<\/span><\/div>\n<\/div>\n<div class=\"kg-bookmark-thumbnail\"><img decoding=\"async\" class=\"lazyload\" src=\"data:image\/gif;base64,R0lGODlhAQABAIAAAAAAAP\/\/\/yH5BAEAAAAALAAAAAABAAEAAAIBRAA7\" data-src=\"https:\/\/app.gitbook.com\/share\/space\/thumbnail\/-LvKegU8SBuWnETMfqrz.png\" alt=\"\"><noscript><img decoding=\"async\" class=\"lazyload\" src=\"https:\/\/app.gitbook.com\/share\/space\/thumbnail\/-LvKegU8SBuWnETMfqrz.png\" alt=\"\"><\/noscript><\/div>\n<p><\/a><\/figure>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_80 ez-toc-wrap-center counter-hierarchy ez-toc-counter ez-toc-custom ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title ez-toc-toggle\" style=\"cursor:pointer\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #ffffff;color:#ffffff\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #ffffff;color:#ffffff\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.getwidget.dev\/blog\/flutter-radiolisttile\/#how-radiolisttile-is-different-from-listtile\" >How RadioListTile is different from ListTile?<\/a><\/li><\/ul><\/nav><\/div>\n<h2 id=\"how-radiolisttile-is-different-from-listtile\"><span class=\"ez-toc-section\" id=\"how-radiolisttile-is-different-from-listtile\"><\/span><strong>How RadioListTile is different from ListTile?<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Both <strong>ListTile<\/strong> and <strong>RadioListTile<\/strong> are having almost similar properties. We mostly use RadioListTile in those sections where we are having a list of options among them we can select one but in the case of ListTile it is not mandatory to use the radio button for any selection, we can simply use this to display any data with a card fashion. <\/p>\n<h3 id=\"can-we-change-the-background-color-of-radiolisttile\">Can we change the background color of RadioListTile?<\/h3>\n<p>We can change the background color by using the color property. Also, we can change the active and inactive background colors. <\/p>\n<h3 id=\"how-can-we-change-the-position-of-radio-button-in-radiolisttile\">How can we change the position of radio button in RadioListTile?<\/h3>\n<p>We can alter the position by using the position property. It can be to either left or right side of the screen. <\/p>\n<p><a href=\"https:\/\/docs.getwidget.dev\/\" target=\"_blank\" rel=\"noopener\"><strong>Flutter Get Widget Docs<\/strong><\/a><\/p>\n<figure class=\"kg-card kg-bookmark-card\"><a class=\"kg-bookmark-container\" href=\"https:\/\/docs.getwidget.dev\/\" target=\"_blank\" rel=\"noopener\"><\/p>\n<div class=\"kg-bookmark-content\">\n<div class=\"kg-bookmark-title\">Flutter GetWidget Docs<\/div>\n<div class=\"kg-bookmark-description\">Get Widget is one of the largest Flutter open-source UI Kit libraries for mobile or web apps. It has more than 1000+ pre-built reusable widgets.<\/div>\n<div class=\"kg-bookmark-metadata\"><img decoding=\"async\" class=\"kg-bookmark-icon lazyload\" src=\"data:image\/gif;base64,R0lGODlhAQABAIAAAAAAAP\/\/\/yH5BAEAAAAALAAAAAABAAEAAAIBRAA7\" data-src=\"https:\/\/ik.imagekit.io\/ionicfirebaseapp\/favicon_QkjfdlGz1.png\" alt=\"\"><noscript><img decoding=\"async\" class=\"kg-bookmark-icon lazyload\" src=\"https:\/\/ik.imagekit.io\/ionicfirebaseapp\/favicon_QkjfdlGz1.png\" alt=\"\"><\/noscript><span class=\"kg-bookmark-author\">getwidget<\/span><span class=\"kg-bookmark-publisher\">getwidget<\/span><\/div>\n<\/div>\n<div class=\"kg-bookmark-thumbnail\"><img decoding=\"async\" class=\"lazyload\" src=\"data:image\/gif;base64,R0lGODlhAQABAIAAAAAAAP\/\/\/yH5BAEAAAAALAAAAAABAAEAAAIBRAA7\" data-src=\"https:\/\/ik.imagekit.io\/ionicfirebaseapp\/docs\/tr:dpr-auto,tr:w-auto\/link-share_aT-cHzGY9.png\" alt=\"\"><noscript><img decoding=\"async\" class=\"lazyload\" src=\"https:\/\/ik.imagekit.io\/ionicfirebaseapp\/docs\/tr:dpr-auto,tr:w-auto\/link-share_aT-cHzGY9.png\" alt=\"\"><\/noscript><\/div>\n<p><\/a><\/figure>\n<p><a href=\"https:\/\/forum.getwidget.dev\/\" target=\"_blank\" rel=\"noopener\"><strong>Flutter Forum<\/strong><\/a>: <\/p>\n<p>if any Find any questions let&#8217;s discuss them on Forum.<\/p>\n<figure class=\"kg-card kg-bookmark-card\"><a class=\"kg-bookmark-container\" href=\"https:\/\/forum.getwidget.dev\/\" target=\"_blank\" rel=\"noopener\"><\/p>\n<div class=\"kg-bookmark-content\">\n<div class=\"kg-bookmark-title\">GetWidget- A Flutter Developer Forum<\/div>\n<div class=\"kg-bookmark-description\">Flutter largest Open-Source Flutter UI Library with in-built widgets.<\/div>\n<div class=\"kg-bookmark-metadata\"><img decoding=\"async\" class=\"kg-bookmark-icon lazyload\" src=\"data:image\/gif;base64,R0lGODlhAQABAIAAAAAAAP\/\/\/yH5BAEAAAAALAAAAAABAAEAAAIBRAA7\" data-src=\"https:\/\/ik.imagekit.io\/ionicfirebaseapp\/getwidget\/tr:dpr-auto,tr:w-auto\/optimized\/1X\/c9d2fb1974d7972ffcebcdcdc8945e95b9661936_2_180x180.png\" alt=\"\"><noscript><img decoding=\"async\" class=\"kg-bookmark-icon lazyload\" src=\"https:\/\/ik.imagekit.io\/ionicfirebaseapp\/getwidget\/tr:dpr-auto,tr:w-auto\/optimized\/1X\/c9d2fb1974d7972ffcebcdcdc8945e95b9661936_2_180x180.png\" alt=\"\"><\/noscript><span class=\"kg-bookmark-author\">GetWidget- A Flutter Developer Forum<\/span><\/div>\n<\/div>\n<div class=\"kg-bookmark-thumbnail\"><img decoding=\"async\" class=\"lazyload\" src=\"data:image\/gif;base64,R0lGODlhAQABAIAAAAAAAP\/\/\/yH5BAEAAAAALAAAAAABAAEAAAIBRAA7\" data-src=\"https:\/\/ik.imagekit.io\/ionicfirebaseapp\/getwidget\/tr:dpr-auto,tr:w-auto\/original\/1X\/c9d2fb1974d7972ffcebcdcdc8945e95b9661936.png\" alt=\"\"><noscript><img decoding=\"async\" class=\"lazyload\" src=\"https:\/\/ik.imagekit.io\/ionicfirebaseapp\/getwidget\/tr:dpr-auto,tr:w-auto\/original\/1X\/c9d2fb1974d7972ffcebcdcdc8945e95b9661936.png\" alt=\"\"><\/noscript><\/div>\n<p><\/a><\/figure>\n<p><a href=\"https:\/\/github.com\/ionicfirebaseapp\/getwidget\" target=\"_blank\" rel=\"noopener\"><strong>GitHub Repository<\/strong><\/a>: <\/p>\n<p>Please do appreciate our work through Github start<\/p>\n<figure class=\"kg-card kg-bookmark-card\"><a class=\"kg-bookmark-container\" href=\"https:\/\/github.com\/ionicfirebaseapp\/getwidget\" target=\"_blank\" rel=\"noopener\"><\/p>\n<div class=\"kg-bookmark-content\">\n<div class=\"kg-bookmark-title\">GitHub &#8211; ionicfirebaseapp\/getwidget: Most popular and easy to use open source UI library with 1000+ Widgets to build flutter app.<\/div>\n<div class=\"kg-bookmark-description\">Most popular and easy to use open source UI library with 1000+ Widgets to build flutter app. &#8211; GitHub &#8211; ionicfirebaseapp\/getwidget: Most popular and easy to use open source UI library with 1000+ W&#8230;<\/div>\n<div class=\"kg-bookmark-metadata\"><img decoding=\"async\" class=\"kg-bookmark-icon lazyload\" src=\"data:image\/gif;base64,R0lGODlhAQABAIAAAAAAAP\/\/\/yH5BAEAAAAALAAAAAABAAEAAAIBRAA7\" data-src=\"https:\/\/github.com\/fluidicon.png\" alt=\"\"><noscript><img decoding=\"async\" class=\"kg-bookmark-icon lazyload\" src=\"https:\/\/github.com\/fluidicon.png\" alt=\"\"><\/noscript><span class=\"kg-bookmark-author\">GitHub<\/span><span class=\"kg-bookmark-publisher\">ionicfirebaseapp<\/span><\/div>\n<\/div>\n<div class=\"kg-bookmark-thumbnail\"><img decoding=\"async\" class=\"lazyload\" src=\"data:image\/gif;base64,R0lGODlhAQABAIAAAAAAAP\/\/\/yH5BAEAAAAALAAAAAABAAEAAAIBRAA7\" data-src=\"https:\/\/repository-images.githubusercontent.com\/227270948\/0186c488-4aef-49b5-99c6-a6ca974ea924\" alt=\"\"><noscript><img decoding=\"async\" class=\"lazyload\" src=\"https:\/\/repository-images.githubusercontent.com\/227270948\/0186c488-4aef-49b5-99c6-a6ca974ea924\" alt=\"\"><\/noscript><\/div>\n<p><\/a><\/figure>\n<h3 id=\"conclusion\">Conclusion:<\/h3>\n<p>Here we discuss, what <strong>Flutter RadioListTile<\/strong> Widget is? And how we can use and implement it into our Flutter app through the <strong>GetWidget<\/strong> <strong>RadioListTile<\/strong> component. Here, there are options to customize the <strong>RadioListTile<\/strong> Button.<\/p>\n<h3 id=\"about-our-team\">About Our Team:<\/h3>\n<p>We have been working on Flutter since Flutter launched in beta version in 2017. And our team have been putting hundreds and hundreds of hour to experiment and implementation of Flutter. As well as after successful delivery of enterprise and SAAS applications that have been used by more than 500+ businesses around the 119+ countries. Now we are in love with Flutter development and we are very passionate about Flutter development. Now it is something we are trying to give a small contribution to the Flutter Dev Community.<\/p>\n","protected":false},"excerpt":{"rendered":"Flutter RadioListTile basically contains a single row that has a title, subtitle, and a trailing radio button. It&hellip;","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"csco_display_header_overlay":false,"csco_singular_sidebar":"","csco_page_header_type":"","footnotes":""},"categories":[139],"tags":[],"class_list":{"0":"post-7389","1":"post","2":"type-post","3":"status-publish","4":"format-standard","6":"category-flutter","7":"cs-entry"},"_links":{"self":[{"href":"https:\/\/www.getwidget.dev\/blog\/wp-json\/wp\/v2\/posts\/7389","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.getwidget.dev\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.getwidget.dev\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.getwidget.dev\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.getwidget.dev\/blog\/wp-json\/wp\/v2\/comments?post=7389"}],"version-history":[{"count":1,"href":"https:\/\/www.getwidget.dev\/blog\/wp-json\/wp\/v2\/posts\/7389\/revisions"}],"predecessor-version":[{"id":8454,"href":"https:\/\/www.getwidget.dev\/blog\/wp-json\/wp\/v2\/posts\/7389\/revisions\/8454"}],"wp:attachment":[{"href":"https:\/\/www.getwidget.dev\/blog\/wp-json\/wp\/v2\/media?parent=7389"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.getwidget.dev\/blog\/wp-json\/wp\/v2\/categories?post=7389"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.getwidget.dev\/blog\/wp-json\/wp\/v2\/tags?post=7389"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}