dart

Make cards with texts and buttons dynamically

大兔子大兔子 提交于 2020-12-06 12:01:55
问题 I'm making Notes app. I made cards with text and buttons dynamically (Create by clicking the button). But I have problem with Changing Text on CURRENT card. For example, I have 3 cards with own texts and buttons and I want to change text on 2nd card but text is changing on the 3rd card. How can I solve this problem? 3 cards with texts and buttons Change Text Page In the past, I've tried making list to collect texts, but i dont know how to identify current card. full main.dart import 'package

Make cards with texts and buttons dynamically

戏子无情 提交于 2020-12-06 12:00:47
问题 I'm making Notes app. I made cards with text and buttons dynamically (Create by clicking the button). But I have problem with Changing Text on CURRENT card. For example, I have 3 cards with own texts and buttons and I want to change text on 2nd card but text is changing on the 3rd card. How can I solve this problem? 3 cards with texts and buttons Change Text Page In the past, I've tried making list to collect texts, but i dont know how to identify current card. full main.dart import 'package

'_positions.isNotEmpty': ScrollController not attached to any scroll views

别来无恙 提交于 2020-12-06 07:35:07
问题 I am getting an error in scroll view controller. Here is error: flutter: 'package:flutter/src/widgets/scroll_controller.dart': Failed assertion: line 149 pos 12: '_positions.isNotEmpty': ScrollController not attached to any scroll views. I used following code and I hope due to this it is generating: return ListView( controller: _mealScrollController, children: <Widget>[ Container( height: screenSize.height * 0.35, ), WorkWidget(workTime: workTime.morning), WorkWidget(workTime: workTime

'_positions.isNotEmpty': ScrollController not attached to any scroll views

家住魔仙堡 提交于 2020-12-06 07:35:05
问题 I am getting an error in scroll view controller. Here is error: flutter: 'package:flutter/src/widgets/scroll_controller.dart': Failed assertion: line 149 pos 12: '_positions.isNotEmpty': ScrollController not attached to any scroll views. I used following code and I hope due to this it is generating: return ListView( controller: _mealScrollController, children: <Widget>[ Container( height: screenSize.height * 0.35, ), WorkWidget(workTime: workTime.morning), WorkWidget(workTime: workTime

Flutter “Mailer” API Multiple Image Attachments

无人久伴 提交于 2020-12-06 07:23:09
问题 I'm making a simple app for getting personal information from the user and number of images to send them through backend mail API with a one click of a button. So far, I can get and send the FormData through mail but I couldn't figure it out the how to send an array of images. I have tried several API's but "Mailer" seems to best for SMTP. As for the code, I tried to convert the "File" class to String or List but none of those have worked for me. I'am not a intermediate coder so be kind with

Flutter “Mailer” API Multiple Image Attachments

假装没事ソ 提交于 2020-12-06 07:21:22
问题 I'm making a simple app for getting personal information from the user and number of images to send them through backend mail API with a one click of a button. So far, I can get and send the FormData through mail but I couldn't figure it out the how to send an array of images. I have tried several API's but "Mailer" seems to best for SMTP. As for the code, I tried to convert the "File" class to String or List but none of those have worked for me. I'am not a intermediate coder so be kind with

How to solve flutter error (OS Error: Access Denied, errno = 5 )?

会有一股神秘感。 提交于 2020-12-06 06:53:58
问题 I am trying to learn flutter. My problem is that when I run my flutter project for first time it runs and installs successfully on device, but if I disconnect the device and rerun the project it gives error. I am tyring to dispay image in my app. When I run flutter clean or flutter clean build or flutter clean cache and rerun the project it does not gives the error, then after disconnecting the device the probelem occers again. I searched google for hours but it did not help me. this the the

How to solve flutter error (OS Error: Access Denied, errno = 5 )?

两盒软妹~` 提交于 2020-12-06 06:51:27
问题 I am trying to learn flutter. My problem is that when I run my flutter project for first time it runs and installs successfully on device, but if I disconnect the device and rerun the project it gives error. I am tyring to dispay image in my app. When I run flutter clean or flutter clean build or flutter clean cache and rerun the project it does not gives the error, then after disconnecting the device the probelem occers again. I searched google for hours but it did not help me. this the the

How to use textEditiing controller with Provider in Flutter

心不动则不痛 提交于 2020-12-06 04:14:05
问题 I am using provider for state management. I am in a situation where there are multiple types of fields in my form. The problem is with text-field Whenever I change Text it is behaving weirdly like the text entered is displayed in reverse order. class MyProvider with ChangeNotifier{ String _name; String get name => _name; setname(String name) { _name = name; notifyListeners(); } } class MyWidget extends StatelessWidget { @override Widget build(BuildContext context) { final MyProvider