Flutter Heroes
26.1K subscribers
272 photos
2 videos
31.1K links
Download Telegram
New post on /r/flutterdev subreddit:

Why does Flutter style widgets structurally?
Newbie to Flutter and curious why Flutter expresses styles structurally. The Center and Padding, etc. widgets remind me of the <center>, <font>, <big>, etc tags in HTML that have been replaced by CSS styles. So why did Flutter take this approach?

May 08, 2020 at 07:06PM by JianingTX
https://ift.tt/2zixvcn
New post on /r/flutterdev subreddit:

Todo – really simple one-liner package for using Kotlin-style TODO()
https://ift.tt/2YI8Ok9

May 08, 2020 at 07:36PM by MarcelGarus
https://ift.tt/2WfZemU
New tweet from FlutterDev:

😲Are your widgets crowding each other?

👉Use Padding widget to provide widgets with some breathing room. Tell it how much space to give with the padding property, and voilà! You've added some distance between your widgets.#WidgetoftheWeek &rarr; https://t.co/6OhZ1j2ime pic.twitter.com/bYzwOC7jYX— Flutter (@FlutterDev) May 8, 2020

May 08, 2020 at 08:04PM
http://twitter.com/FlutterDev/status/1258819997100412933
New post on /r/flutterdev subreddit:

Tiled map library ?
I am looking forward to make a SimCity Like game with tiled auto-generated map with scrolling. I've found 2 libraries : + https://pub.dev/packages/tiled + https://github.com/DanTup/tilerAny advice about choosing one of them ?

May 08, 2020 at 08:58PM by pseeec
https://ift.tt/3dxnFlp
New post on /r/flutterdev subreddit:

<b>18+ Flutter tips & tricks</b>
If you want to produce (or reproduce) a production ready flutter app, we have 18+ tips and tricks for you. &#128071;<strong>1. Create Intro Screen in Just 10 Minutes</strong>If you need an awesome intro screen but don’t have an awesome idea, <a href="https://pub.dev/packages/introduction_screen">Introduction Screen</a> will save you. You'll be amazed.<strong>2. Use Flutter Snippet</strong>If you need productivity, Flutter Code Snippet will make you a superstar. You can easily create commonly used Flutter classes and methods. For example, you can create StreamBuilder Widget or SingleChildScrollView Widget by typing the shortcut streamBldr and singleChildSV respectively. You can use the flutter snippet in <a href="https://github.com/benznest/flutter-snippet">Android Studio</a> or <a href="https://marketplace.visualstudio.com/items?itemName=Nash.awesome-flutter-snippets">VSCode</a>.<strong>3. Create Mind-blowing Icons Using Font Awesome</strong>You don’t have to be the designer to include mind-blowing icons in your app. Just use the <a href="https://pub.dev/packages/font_awesome_flutter#-readme-tab-">font awesome for flutter</a> and you will create magic in minutes.<strong>4. Enjoy Dependency Magic Using</strong> <strong>get.it</strong>A good practice is to put your app’s logic in classes separated from your Widgets and then inject it wherever needed. For example, one of my app, we need to access the Prefmanger class from multiple places to read and update the user state stored in the localstorage. We used <a href="https://pub.dev/packages/get_it">get_it</a> so that this class can be injectable as a dependency.<code>GetIt locator = GetIt.instance;</code><code>void setupLocator() async {</code><code>var instance = await PrefManager.getInstance();</code><code>locator.registerSingleton<PrefManager>(instance,signalsReady: true);</code><code>FirebaseDatabase database = FirebaseDatabase.instance;</code><code>database.setPersistenceEnabled(true);</code><code>locator.registerSingleton<DatabaseReference>(database.reference());</code><code>}</code>//Now you can easily access our prefmanger class like below:<code>locator<PrefManager>().color = 12 ;</code>If you want to see the code block properly, please check out the <a href="https://medium.com/programminghero/18-flutter-tips-tricks-to-give-birth-to-a-production-ready-app-95718e51b6be">full article on our Medium blog.</a><strong>5. Reuse Data Using the Singleton Pattern</strong>Singleton means the class has only one instance and also provides a global point of access to it. It is also an easy one to get wrong if you are not using it carefully. We need to access our ThemeColorclass (dark mode or light mode) again and again to set our theme color in widget . &#128071;<code>class ThemeColor{</code><code>// Singleton instance</code><code>static final ThemeColor _repo = new ThemeColor._();</code><code>// Singleton accessor</code><code>static ThemeColor get instance => _repo;</code><code>// A private constructor. Allows us to create instances of Repository</code><code>// only from within the Repository class itself.</code><code>ThemeColor._();</code><code>Color cardColor(){</code><code>return locator<PrefManager>().darkTheme? Color(0xff221F47):Colors.white;</code><code>}</code><code>Color containerColor(){</code><code>return locator<PrefManager>().darkTheme? Color(0xff161430):Colors.white;</code><code>}</code><code>}</code><code>ThemeColor.instance.cardColor()</code><strong>6. Avoid Widget Rebuild by Using</strong> <strong>const</strong> <strong>Constructor</strong>If you want to prevent unwanted widget rebuilds always use <strong>const</strong> constructor. In the code below, the instance of BoxDecoration will remain the same even if the setState is called.<code>Container(</code><code>width: 250,</code><code>height: 250,</code><code>decoration: const BoxDecoration(</code><code>borderRadius: BorderRadius.only(</code><code>bottomLeft:…
New post on /r/flutterdev subreddit:

Tutorial
Guys why there's no proper tutorials for flutter? I understand theres a lot of docs and YouTube videos but I'm feeling like there are there just for getting something done and there's not a real tutorial for really learning it. Deep learning is different than just watching 3+ hours of tutorials and copying it. I always feel like I don't know enough and it proves me right. After completing tons of tutorials I still need more and more help from forums or other open source projects to understand how everything works and feel lost. If there are some other ways or a good tutorials please let me know.

May 08, 2020 at 10:24PM by armen_652
https://ift.tt/35Uafh7
New post on Flutter Dev Google group:

1.17 MaterialColor changed ???
Just playing around with the default app and tried to change colors in primarySwatch, I noticed that none of the "accent" or sub colors are supported now. This works: Colors.blue or Colors.red These examples do not work: Colors.blueAccent Colors.red[200] Colors.grey.shade700 The above

May 08, 2020 at 11:28PM by jerry hamby
https://ift.tt/2SNNw0S
New post on /r/flutterdev subreddit:

Want to find a course/project that teaches how to structure a Flutter app (well)
Hey, I'm looking for a set of videos/course/tutorial that would teach production-level structure of a Flutter app (with tests, state management, stores, etc.)Anybody know of a tutorial like this?

May 09, 2020 at 02:55AM by NoteToBear
https://ift.tt/3dtmXWp
New post on /r/flutterdev subreddit:

Noob Post: Serious help needed for connectivity of flutter App
Hi guys. As part of my project, I have to make a learner app in flutter for a college which database should be stored online and should also be available to the teachers in the LMS(veTrack System) they use in the college.They require the development of an application that can provide connectivity to students and facilitators managing candidate training, learning and work engagement to auto-log progress, diary notes and competencies automatically through the cloud to VetTrack.Development of a UX/UI and Infrastructure plan identifying seamless integration between the data being collected and entry into VETtrak system.Development of connectivity framework via a cloud computing to connect the app with current college software frameworkSo, I need suggestions guys. What should I use as back end and how to make or connect API which connect app with backend and cloud. And, how can I connect the app with the LMs system of college so data entered in App hows up in the college system but the data of app are stored online. HELP PLEASE

May 09, 2020 at 05:31AM by romanjung
https://ift.tt/2YM6qZF
New post on /r/flutterdev subreddit:

Flutter learner
Hello all,As a part of my project, i want to develop a rescue app in flutter where user can login as victim and volunteer .And victims can send their location and other details to volunteer groups. how can i implement this feature in app..making UI is not a big deal after that what should i do? i am in confuse any body help? i googled but cannot find a way after ? any suggestion.

May 09, 2020 at 08:25AM by CRsujan
https://ift.tt/2yJdBXZ
New post on /r/flutterdev subreddit:

OctoImage | An image library for showing placeholders, error widgets and transforming your image.
https://ift.tt/2WgziYf

May 09, 2020 at 08:38AM by Elixane
https://ift.tt/3fz5BcE
New post on /r/flutterdev subreddit:

New simple lib for getting a list of email apps and opening them. Covers some use cases url_launcher can't.
https://ift.tt/3cjrkTM

May 08, 2020 at 08:39PM by MisterJimson
https://ift.tt/3fxWVDu