Custom flutter dropdown menu

After extensive searching, I could not find an article or a video on YouTube that deals with the idea of ​​a custom drop-down menu similar to the Facebook notifications menu.. That is why I ask for help in implementing it >Solution : with PopupMenuButton you can make custom menu as you want: appBar: AppBar( actions:… Read More Custom flutter dropdown menu

Flutter – Slidable, cannot put svg for icon property of Slidable

Slidable( groupTag: 0, key: UniqueKey(), endActionPane: ActionPane( children: [ SlidableAction( onPressed: (BuildContext context) { //whatever I will do here }, icon: Icons.delete )// SvgPicture.asset(Assets.svg.trash.svg()),) ], ), child: _makeColumnTile( myCard, ), ); This is just a basic slidable item, which I am doing for every list item I have. I understand, and can work with slidable… Read More Flutter – Slidable, cannot put svg for icon property of Slidable

Flutter – Slidable, cannot put svg for icon property of Slidable

Slidable( groupTag: 0, key: UniqueKey(), endActionPane: ActionPane( children: [ SlidableAction( onPressed: (BuildContext context) { //whatever I will do here }, icon: Icons.delete )// SvgPicture.asset(Assets.svg.trash.svg()),) ], ), child: _makeColumnTile( myCard, ), ); This is just a basic slidable item, which I am doing for every list item I have. I understand, and can work with slidable… Read More Flutter – Slidable, cannot put svg for icon property of Slidable

Flutter – Passing Information to custom Button Widget

I’m trying to make a Custom Button Widget to reuse it in my code. Within my page I’m calling the button like this: import ‘package:app/components/MyCustomButton.dart’; […] const MyCustomButton( title: ‘Title of the button’, type: ‘primary’ ), the complete Source of MyCustomButton is below. The Issue I’m having is when displaying Text that was defined in… Read More Flutter – Passing Information to custom Button Widget

i cant add function to onchanged The argument type 'void Function(Language)' can't be assigned to the parameter type 'void Function(Language?)?'

I’m trying to make an Internationalizing app with this youtube movie: https://www.youtube.com/watch?v=yX0nNHz1sFo&list=PLyHn8N5MSsgEfPAxCytQDPATDlHwpP5rE&index=4 When I add a function to DropDownButton’s onChanged I get the error: The argument type ‘void Function(Language)’ can’t be assigned to the parameter type ‘void Function(Language?)?’ Here is the code class GeneralList extends StatefulWidget { GeneralList({super.key}); @override State<GeneralList> createState() => _GeneralListState(); } class… Read More i cant add function to onchanged The argument type 'void Function(Language)' can't be assigned to the parameter type 'void Function(Language?)?'

Flutter – Radio List Tile not selecting the radio button inside bottom sheet

I am using flutter RadioListTile for radio button selection and having issue while trying to checked. i.e, not selecting the button but value is receiving after checked. can any one help on this? Below is the sample code, var _selectedLanguageRadioIndex = 0; List<String> languageTitle = ["English","हिंदी","ಕನ್ನಡ"]; List<String> languageType = ["en","hi","ka"]; _languageOptions(){ showModalBottomSheet( isScrollControlled: true, shape:… Read More Flutter – Radio List Tile not selecting the radio button inside bottom sheet

How to remove divider line between ddrawer and the list

How to remove divider line between ddrawer and the list? I have next code: @override Widget build(BuildContext context) { return Drawer( child: ListView( children: [ const DrawerHeader( decoration: BoxDecoration( color: Colors.blueGrey, borderRadius: BorderRadius.only( bottomLeft: Radius.circular(40), bottomRight: Radius.circular(40), ), ), child: Text(‘Settings’), ), ListTile( leading: const Icon(Icons.settings), title: const Text("Blue Print"), ), ], ), ); that… Read More How to remove divider line between ddrawer and the list

I want to use Provider in InitState() but got an exception: Null check operator used on a null value

Hi I’m new to flutter. I am using Provider and want to use the data I get from it as the initial value of textfield. So I decided to define the controller as a nullable value and put the text to it in initState(). Here is the code. … TextEditingController? _lastNameController; TextEditingController? _firstNameController; @override void… Read More I want to use Provider in InitState() but got an exception: Null check operator used on a null value