Skip to content

Commit e34b726

Browse files
author
Sabbir Ahmed
authored
Merge pull request #1065 from motasimfuad/flutter-common-errors
Flutter - Some common errors and their fixes added
2 parents c63ccf4 + bcd8561 commit e34b726

1 file changed

Lines changed: 41 additions & 1 deletion

File tree

data/flutter.json

Lines changed: 41 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,47 @@
192192
]
193193
},
194194

195-
195+
{
196+
"title": "ফ্লাটারের কমন কিছু Error এবং সেগুলার Fix",
197+
"items": [
198+
{
199+
"definition": "A RenderFlex overflowed by 0.02 pixels on the bottom.",
200+
"code": "স্ক্রিনের হাইটের চেয়ে এলিমেন্টগুলার হাইট বড় হয়ে গেছে। যার কারনে overflow হচ্ছে। প্যারেন্ট উইজেটে Expanded ব্যবহার করুন অথবা ফিক্সড হাইট দিয়ে SingleChildScrollView ব্যবহার করুন।"
201+
},
202+
{
203+
"definition": "BoxConstraints forces an infinite width.",
204+
"code": "Expanded উইজেটটি Row বা Column এর ভিতরে আছে কিনা তা চেক করুন।"
205+
},
206+
{
207+
"definition": "setState() or markNeedsBuild() called during widget creation.",
208+
"code": "initState এ setState ব্যবহার করা যাবে না। এটি ব্যবহার করতে হলে একটি ডিলে মেথড ব্যবহার করতে হবে।\n\nWidgetsBinding.instance.addPostFrameCallback((_) => setState(() {}));"
209+
},
210+
{
211+
"definition": "renderBox was not laid out: RenderFlex object was given an infinite height during layout.",
212+
"code": "SingleChildScrollView টি একটি Container বা অন্য কোন ফিক্সড হাইটের উইজেটের ভিতরে ইউজ করতে হবে।"
213+
},
214+
{
215+
"definition": "Don't use 'BuildContext's across async gaps. Try rewriting the code to not reference the 'BuildContext'.",
216+
"code": "StatelessWidget এ (context.mounted) এবং StatefulWidget এ (mounted) দিয়ে চেক করুন, উইজেটটি ফ্লাটারের উইজেট ট্রি'তে মাউন্ট হয়েছে কিনা।"
217+
},
218+
{
219+
"definition": "Duplicate GlobalKey detected in widget tree.",
220+
"code": "#১. GlobalKey অবশ্যই ইউনিক হতে হবে। একই ক্লাসের দুইটি উইজেটে একই GlobalKey ব্যবহার করা যাবে না।\n#২. প্রয়োজনে ValueKey অথবা ObjectKey ব্যবহার করতে হবে।"
221+
},
222+
{
223+
"definition": "The argument type 'String?' can't be assigned to the parameter type 'String'",
224+
"code": "ডাটা টাইপ চেঞ্জ হওয়ার কারনে এই এরর আসছে। null-aware operators('?' / '??') ব্যবহার করুন।"
225+
},
226+
{
227+
"definition": "Execution failed for task ':app:processDebugResources'.",
228+
"code": "#১. কনসোলে, flutter clean রান করে, পরে flutter pub get রান করুন। \n#২. এনড্রয়েড গ্রেডেল ফাইলে (android/app/build.gradle) সব ঠিক আছে কিনা চেক করুন।"
229+
},
230+
{
231+
"definition": "MissingPluginException(No implementation found for method x on channel y)",
232+
"code": "flutter pub get দিয়ে pubspec.yaml আপডেট করুন।"
233+
}
234+
]
235+
},
196236
{
197237
"title": "কিছু ইম্পরট্যান্ট ফ্লাটার শীট",
198238
"items": [

0 commit comments

Comments
 (0)