Skip to content

Commit 0fd0462

Browse files
committed
Flutter - Common errors and the fixes added
1 parent 3051d26 commit 0fd0462

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
@@ -149,7 +149,47 @@
149149

150150
]
151151
},
152-
152+
{
153+
"title": "ফ্লাটারের কমন কিছু Error এবং সেগুলার Fix",
154+
"items": [
155+
{
156+
"definition": "A RenderFlex overflowed by 0.02 pixels on the bottom.",
157+
"code": "স্ক্রিনের হাইটের চেয়ে এলিমেন্টগুলার হাইট বড় হয়ে গেছে। যার কারনে overflow হচ্ছে। প্যারেন্ট উইজেটে Expanded ব্যবহার করুন অথবা ফিক্সড হাইট দিয়ে SingleChildScrollView ব্যবহার করুন।"
158+
},
159+
{
160+
"definition": "BoxConstraints forces an infinite width.",
161+
"code": "Expanded উইজেটটি Row বা Column এর ভিতরে আছে কিনা তা চেক করুন।"
162+
},
163+
{
164+
"definition": "setState() or markNeedsBuild() called during widget creation.",
165+
"code": "initState এ setState ব্যবহার করা যাবে না। এটি ব্যবহার করতে হলে একটি ডিলে মেথড ব্যবহার করতে হবে।\n\nWidgetsBinding.instance.addPostFrameCallback((_) => setState(() {}));"
166+
},
167+
{
168+
"definition": "renderBox was not laid out: RenderFlex object was given an infinite height during layout.",
169+
"code": "SingleChildScrollView টি একটি Container বা অন্য কোন ফিক্সড হাইটের উইজেটের ভিতরে ইউজ করতে হবে।"
170+
},
171+
{
172+
"definition": "Don't use 'BuildContext's across async gaps. Try rewriting the code to not reference the 'BuildContext'.",
173+
"code": "StatelessWidget এ (context.mounted) এবং StatefulWidget এ (mounted) দিয়ে চেক করুন, উইজেটটি ফ্লাটারের উইজেট ট্রি'তে মাউন্ট হয়েছে কিনা।"
174+
},
175+
{
176+
"definition": "Duplicate GlobalKey detected in widget tree.",
177+
"code": "#১. GlobalKey অবশ্যই ইউনিক হতে হবে। একই ক্লাসের দুইটি উইজেটে একই GlobalKey ব্যবহার করা যাবে না।\n#২. প্রয়োজনে ValueKey অথবা ObjectKey ব্যবহার করতে হবে।"
178+
},
179+
{
180+
"definition": "The argument type 'String?' can't be assigned to the parameter type 'String'",
181+
"code": "ডাটা টাইপ চেঞ্জ হওয়ার কারনে এই এরর আসছে। null-aware operators('?' / '??') ব্যবহার করুন।"
182+
},
183+
{
184+
"definition": "Execution failed for task ':app:processDebugResources'.",
185+
"code": "#১. কনসোলে, flutter clean রান করে, পরে flutter pub get রান করুন। \n#২. এনড্রয়েড গ্রেডেল ফাইলে (android/app/build.gradle) সব ঠিক আছে কিনা চেক করুন।"
186+
},
187+
{
188+
"definition": "MissingPluginException(No implementation found for method x on channel y)",
189+
"code": "flutter pub get দিয়ে pubspec.yaml আপডেট করুন।"
190+
}
191+
]
192+
},
153193
{
154194
"title": "কিছু ইম্পরট্যান্ট ফ্লাটার শীট",
155195
"items": [

0 commit comments

Comments
 (0)