Spacer cause overflow issue – Flutter
I have two texts in a row, and one of them is way longer than the other one. I use spacer to give more spaces to one of the texts. If the text gets really long, it causes an overflow.…
I have two texts in a row, and one of them is way longer than the other one. I use spacer to give more spaces to one of the texts. If the text gets really long, it causes an overflow.…
here's a screenshot of the codeenter image description here I tried calling the function onPress in GestureDetector property onTap then no errors were showing then this was what i saw on the android emulator
Am trying to select one or more check boxes from a list of check boxes, i have found that the best option is using the checkBoxListTile widget to implement this. First i have defined a list and used the widget…
I want to discuss about problem I'm facing in a flutter app. The app is a social E-Commerce app with layout like Facebook or Instagram. I am using pagination of 10 posts with multiple images max 4 per post like…
I have two stateful classes and I want to trigger the function triggerFunction() from one class in second class's build method with onPressed event of a button. Here are the both classes: import 'package:flutter/material.dart'; class TriggerClass extends StatefulWidget { const…
How to fix this error message: The method 'toImage' isn't defined for the type 'RenderObject'. Try correcting the name to the name of an existing method, or defining a method named 'toImage'. My Code: Future<void> saveImage() async { RenderObject? boundary…
I use HTTP launcher and found this error on my console log after I run debug on my android studio emulator: [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: MissingPluginException(No implementation found for method launch on channel plugins.flutter.io/url_launcher_android) This is the code where it throw…
I'm working on a flutter app that is getting a JSON from an API. Then I'm parsing the JSON and building a List Tile. When I try to run the code, I'm getting this error: lib/screens/screen4.dart:112:23: Error: Too many positional…
I can't get the length of the list in the widget although I wrote everything correct this is my cubit class AppCubit extends Cubit<NewsStates> { AppCubit() : super(NewsInit()); static AppCubit get(context) => BlocProvider.of(context); MianTeams? mianTeams; void getTimes() { emit(NewsLoding()); DioHelper.getData(…
body: SingleChildScrollView( child: InkWell( splashColor: Colors.black87, onTap: () {}, child: Ink.image( image: Image.asset('images/logo.png'), // here height: 100, width: 400, fit: BoxFit.cover, ), ), ), I want to apply asset image on my text button