Issue I have a widget that consists of a Row() with MainAxisAlignment.spaceEvenly, and has three IconButton as children. The third button uses a bool showButton in a ternary operator to toggle whether the third button is displayed or not. My
Continue readingCategory: Flutter IOS
How can I change the height of a TextField in Flutter?
Issue I want to change the height of a TextField in Flutter but I don’t know which one is the best way. Wrap the TextField in a SizedBox Use content padding property If you have some experience, please share it.
Continue readingHow to put border rounded in DropdownButtonFormField? using flutter
Issue How to put border rounded in DropdownButtonFormField? and how to make background color in the dropdown icon? please see the picture below Container( padding: EdgeInsets.only(top: 10), width: (globals.screenWidth * 0.8), height: (globals.screenHeight * 0.08), color: Colors.white, child: DropdownButtonFormField( style:
Continue readingHow do i handle errors in Dio package
Issue okay so im using dio package to authenticate users in my app. it works fine but i want to be able to show the error message in a toast message for the user and i have absolutely no idea
Continue readingProblem with TextEditingController on back pressed
Issue I have the following StatefulWidget in my Flutter application: class EditProfilePage extends StatefulWidget { const EditProfilePage({super.key}); @override State<EditProfilePage> createState() => _EditProfilePageState(); } class _EditProfilePageState extends State<EditProfilePage> { ProfileClient client = ProfileClient(); TextEditingController usernameController = TextEditingController(); Future<ProfileResponse>? futureProfileResponse; @override void
Continue readingFlutter hive unit test
Issue I got a problem with testing function calling hive put method, now i’m gonna provide my code for the function, test and the error message ///////////////////// Function impl. //////////////////////// class AppLocalDataSourceImpl implements AppLocalDataSource { static const _kTag = "AppLocalDataSource";
Continue readingempty space after all elements in groupedlistview Flutter
Issue I am using the groupedlistview library and I have a problem, after all the elements there is an empty space, how to get rid of it? GroupedListView<BookComposition, String>( shrinkWrap: true, elements: _elements, groupBy: (element) => element.ticketTypeName!, groupComparator: (value1, value2)
Continue readingIn flutter with material 3 enabled, how do I change the color of CupertinoDialogAction text globally?
Issue In a flutter app I have a ThemeData() applied to the Material app. Since setting useMaterial3: true, some colors across the app have changed. Namely, the Text color for CupertinoDialogAction in CupertinoAlertDialog has turned purple (0xFFD0BCFF). I don’t want
Continue readingFirebaseAuth.instance.userChanges() only firing on one authed device
Issue I have a Flutter web app with accompanying iOS app – all in Flutter, and I am using Firebase auth. I am listening to changes on the user with FirebaseAuth.instance.userChanges() If I log in with a single device (web)
Continue readingFirebase – firestore rule to get data from nested collection if that particular user id present
Issue I have the data in the following structure: stage/data/groups(coll)/ group_name group_id participants(coll)/userid My requirement is to write the firebase rule with the following condition. If user A calls the groups collection, then it should returns ALL the groups if
Continue reading