Showing
1 changed file
with
10 additions
and
6 deletions
@@ -248,35 +248,39 @@ Get.offAll(NextScreen()); | @@ -248,35 +248,39 @@ Get.offAll(NextScreen()); | ||
248 | 248 | ||
249 | ### রুট ব্যবস্থাপনা সম্পর্কে আরো বিস্তারিত | 249 | ### রুট ব্যবস্থাপনা সম্পর্কে আরো বিস্তারিত |
250 | 250 | ||
251 | -**Get works with named routes and also offers lower-level control over your routes! There is in-depth documentation [here](./documentation/en_US/route_management.md)** | 251 | +**রুট ব্যবস্থাপনা সম্পর্কে আরো বিস্তারিত ডকুমেন্টেশন আছে [এখানে](./documentation/en_US/route_management.md)** |
252 | 252 | ||
253 | ## ডিপেনডেন্সি ব্যবস্থাপনা | 253 | ## ডিপেনডেন্সি ব্যবস্থাপনা |
254 | 254 | ||
255 | Get has a simple and powerful dependency manager that allows you to retrieve the same class as your Bloc or Controller with just 1 lines of code, no Provider context, no inheritedWidget: | 255 | Get has a simple and powerful dependency manager that allows you to retrieve the same class as your Bloc or Controller with just 1 lines of code, no Provider context, no inheritedWidget: |
256 | +Get এর একটি সহজ এবং শক্তিশালী ডিপেনডেন্সি পরিচালক রয়েছে যা আপনাকে কোনও Provider context বা inheritedWidget ছাড়াই, মাত্র 1 লাইনের কোডের মাধ্যমে আপনার ব্লক বা কন্ট্রোলারের মতো একই class রিট্রিভ করতে দেয়: | ||
256 | 257 | ||
257 | ```dart | 258 | ```dart |
258 | Controller controller = Get.put(Controller()); // Rather Controller controller = Controller(); | 259 | Controller controller = Get.put(Controller()); // Rather Controller controller = Controller(); |
259 | ``` | 260 | ``` |
260 | 261 | ||
261 | -- Note: If you are using Get's State Manager, pay more attention to the bindings API, which will make it easier to connect your view to your controller. | 262 | +- দ্রষ্টব্য: আপনি যদি Get's State Manager ব্যবহার করেন, তাহলে bindings API-এ আরও মনোযোগ দিন, যা আপনার কন্ট্রোলারের সাথে আপনার ভিউকে সংযোগ করা সহজ করে তুলবে। |
262 | 263 | ||
263 | -Instead of instantiating your class within the class you are using, you are instantiating it within the Get instance, which will make it available throughout your App. | ||
264 | -So you can use your controller (or class Bloc) normally | 264 | +আপনি যে ক্লাসটি ব্যবহার করছেন তার মধ্যে আপনার ক্লাসকে ইনস্ট্যান্টিয়েট করার পরিবর্তে Get ইনস্ট্যান্সের মধ্যে ইনস্ট্যান্টিয়েট করুন, যা এটিকে আপনার অ্যাপ জুড়ে উপলব্ধ করবে। |
265 | +তখন আপনি স্বাভাবিকভাবে আপনার controller (বা class Bloc) ব্যবহার করতে পারবেন। | ||
265 | 266 | ||
266 | **Tip:** Get dependency management is decoupled from other parts of the package, so if for example, your app is already using a state manager (any one, it doesn't matter), you don't need to rewrite it all, you can use this dependency injection with no problems at all | 267 | **Tip:** Get dependency management is decoupled from other parts of the package, so if for example, your app is already using a state manager (any one, it doesn't matter), you don't need to rewrite it all, you can use this dependency injection with no problems at all |
268 | +**টিপ:** Get ডিপেন্ডেন্সি ম্যানেজমেন্ট প্যাকেজের অন্যান্য অংশ থেকে ডিকপল করা হয়েছে, উদাহরণ স্বরূপ, আপনার অ্যাপ ইতিমধ্যেই একটি স্টেট ম্যানেজার ব্যবহার করে (যেকোনোটি হতে পারে, এটা কোন ব্যাপার না), তবে আপনার পুনরায় সব লেখার দরকার নেই, আপনি কোনও সমস্যা ছাড়াই এই ডিপেন্ডেন্সি ইনজেকশনটি ব্যবহার করতে পারেন। | ||
267 | 269 | ||
268 | ```dart | 270 | ```dart |
269 | controller.fetchApi(); | 271 | controller.fetchApi(); |
270 | ``` | 272 | ``` |
271 | 273 | ||
272 | -Imagine that you have navigated through numerous routes, and you need data that was left behind in your controller, you would need a state manager combined with the Provider or Get_it, correct? Not with Get. You just need to ask Get to "find" for your controller, you don't need any additional dependencies: | 274 | +Not with Get. You just need to ask Get to "find" for your controller, you don't need any additional dependencies: |
275 | + | ||
276 | +কল্পনা করুন যে আপনি অসংখ্য রুটে নেভিগেট করেছেন, এবং আপনার controller এর পিছনে ফেলে আসা ডেটার প্রয়োজন, আপনার প্রোভাইডার বা Get_it এর সাথে মিলিত একটি স্টেট ম্যানেজারের প্রয়োজন হবে, তাই না? Get এর সাথে তা প্রয়োজন নেই। আপনাকে শুধু আপনার controller এর জন্য "find" জিজ্ঞাসা করতে হবে, আপনার কোনো অতিরিক্ত ডিপেন্ডেন্সি প্রয়োজন নেই: | ||
273 | 277 | ||
274 | ```dart | 278 | ```dart |
275 | Controller controller = Get.find(); | 279 | Controller controller = Get.find(); |
276 | //Yes, it looks like Magic, Get will find your controller, and will deliver it to you. You can have 1 million controllers instantiated, Get will always give you the right controller. | 280 | //Yes, it looks like Magic, Get will find your controller, and will deliver it to you. You can have 1 million controllers instantiated, Get will always give you the right controller. |
277 | ``` | 281 | ``` |
278 | 282 | ||
279 | -And then you will be able to recover your controller data that was obtained back there: | 283 | +এবং তারপরে আপনি আপনার নিয়ামক ডেটা পুনরুদ্ধার করতে সক্ষম হবেন যা সেখানে ফিরে প্রাপ্ত হয়েছিল: |
280 | 284 | ||
281 | ```dart | 285 | ```dart |
282 | Text(controller.textFromApi); | 286 | Text(controller.textFromApi); |
-
Please register or login to post a comment