New post on /r/flutterdev subreddit:
Widget inheritance versus composition - what should I do?
After a bit of research, I learned that Flutter for the most part prefers to use composition rather than inheritance when it comes to widgets. For example:- https://flutter.dev/docs/resources/architectural-overview#composition- https://stackoverflow.com/questions/51476234/subclass-a-class-that-extends-statelesswidget-or-statefulwidget-class-https://groups.google.com/g/flutter-dev/c/muVUV4z71fs/m/DS0twymQCAAJWhat if multiple widgets use the same class member (for example an APIService class)? My first instinct was to create a BasePage and have the classes inherit from this BasePage widget - but realized this may not be the proper way to do things in Flutter. For example:Class BasePageWidget {
final apiService = APIService();
}Class A extends BasePageWidget {
super.apiService to use inherited class
}What is the commonly accepted way to approach this? Do I simply add the class member to all of the widgets the utilize the ApiService? This seems a bit repetitive. For example:Class A {
final ApiService = APIService()...useApiService somwhere in the class
}Class B {
final ApiService = APIService()...useApiService somwhere in the class
}
September 06, 2021 at 07:01PM by Material_Problem_380
https://ift.tt/3DRXzrj
Widget inheritance versus composition - what should I do?
After a bit of research, I learned that Flutter for the most part prefers to use composition rather than inheritance when it comes to widgets. For example:- https://flutter.dev/docs/resources/architectural-overview#composition- https://stackoverflow.com/questions/51476234/subclass-a-class-that-extends-statelesswidget-or-statefulwidget-class-https://groups.google.com/g/flutter-dev/c/muVUV4z71fs/m/DS0twymQCAAJWhat if multiple widgets use the same class member (for example an APIService class)? My first instinct was to create a BasePage and have the classes inherit from this BasePage widget - but realized this may not be the proper way to do things in Flutter. For example:Class BasePageWidget {
final apiService = APIService();
}Class A extends BasePageWidget {
super.apiService to use inherited class
}What is the commonly accepted way to approach this? Do I simply add the class member to all of the widgets the utilize the ApiService? This seems a bit repetitive. For example:Class A {
final ApiService = APIService()...useApiService somwhere in the class
}Class B {
final ApiService = APIService()...useApiService somwhere in the class
}
September 06, 2021 at 07:01PM by Material_Problem_380
https://ift.tt/3DRXzrj
docs.flutter.dev
Flutter architectural overview
A high-level overview of the architecture of Flutter, including the core principles and concepts that form its design.
New post on /r/flutterdev subreddit:
How to code a 2D ripple effect in flutter
https://ift.tt/3jNIy1R
September 06, 2021 at 06:16PM by mcfly-dev
https://ift.tt/3l2lJGW
How to code a 2D ripple effect in flutter
https://ift.tt/3jNIy1R
September 06, 2021 at 06:16PM by mcfly-dev
https://ift.tt/3l2lJGW
Medium
Creating a 2D ripple effect in flutter
Creating a Flutter 2D ripple effect using a RenderObject. Here is an humble article on how it works. Source code available.
New post on /r/flutterdev subreddit:
Clean Network Layer in Flutter [Dio + Freezed + Json_Annotation]
https://ift.tt/38HSljG
September 06, 2021 at 08:42PM by i-Senku
https://ift.tt/3jKm166
Clean Network Layer in Flutter [Dio + Freezed + Json_Annotation]
https://ift.tt/38HSljG
September 06, 2021 at 08:42PM by i-Senku
https://ift.tt/3jKm166
Medium
Clean Network Layer in Flutter [Dio + Freezed + Json_Annotation]
Dear Friends, In this article, I will show the network usage that I use in my own projects. For the sake of simplicity, I will not use any…
New post on /r/flutterdev subreddit:
Flutter UI Secret One
https://ift.tt/3jQP2gC
September 07, 2021 at 01:53AM by fredgrott
https://ift.tt/3DPULuV
Flutter UI Secret One
https://ift.tt/3jQP2gC
September 07, 2021 at 01:53AM by fredgrott
https://ift.tt/3DPULuV
Medium
Flutter UI Secret One
There are numerous responsive plugins for Flutter, but that is only a container, not the secret in how to effectively use it more power…
New post on /r/flutterdev subreddit:
How to use Graphqlprovider in multi provider
How can i use graphqlprovider in multiprovider that wraps the materialapp. I have other providers and want to include graphql. Any help? Thanks
September 07, 2021 at 01:24AM by Jaymal1
https://ift.tt/3l3M8V5
How to use Graphqlprovider in multi provider
How can i use graphqlprovider in multiprovider that wraps the materialapp. I have other providers and want to include graphql. Any help? Thanks
September 07, 2021 at 01:24AM by Jaymal1
https://ift.tt/3l3M8V5
reddit
How to use Graphqlprovider in multi provider
A subreddit for Google's portable UI framework.
New post on /r/flutterdev subreddit:
Has anybody used Flutter web in the last couple of months?
How’s it like? Can I use it to build a portfolio website?
September 07, 2021 at 07:25AM by private256
https://ift.tt/3n6uker
Has anybody used Flutter web in the last couple of months?
How’s it like? Can I use it to build a portfolio website?
September 07, 2021 at 07:25AM by private256
https://ift.tt/3n6uker
New post on /r/flutterdev subreddit:
Riverpod vs Bloc
Which one and why?View Poll
September 07, 2021 at 10:42AM by Mesota22
https://ift.tt/3BS2aIv
Riverpod vs Bloc
Which one and why?View Poll
September 07, 2021 at 10:42AM by Mesota22
https://ift.tt/3BS2aIv
New post on /r/flutterdev subreddit:
💥Non-standard way to use more space of screens in your application💥
https://ift.tt/3zMcn8B
September 07, 2021 at 11:15AM by frezycode
https://ift.tt/3h9EZ4n
💥Non-standard way to use more space of screens in your application💥
https://ift.tt/3zMcn8B
September 07, 2021 at 11:15AM by frezycode
https://ift.tt/3h9EZ4n
GitHub
GitHub - Frezyx/bottom_bar_with_sheet: Flutter custom BottomBar Navigation Widget
:rocket: Flutter custom BottomBar Navigation Widget - GitHub - Frezyx/bottom_bar_with_sheet: Flutter custom BottomBar Navigation Widget
New post on /r/flutterdev subreddit:
Looking for CSS like FR unit
Hi while doing some flutter courses I saw most of the time the instructor uses fixed sizes like 200, 300 etc.He mentioned the use of mediaquery to calculate the screen size and then take % of the space that you want of the screen, which is a much better approach.But coming from the web I really like that I can take a div and just create a grid inside it and define the width and height of items in that by fractions (fr) so basically I can say "item A takes 20% of the AVAILABLE SPACE, item B takes 50%, item C takes 30%" and then later I can take item B and create another grid inside it and create "b1,b2,b3 while b1 takes 60% of the available space, b2 takes 20%, b3 takes 20%" but since b1,b2,b3 are a part of B it means b1 is 60% of 50% of the space which is 30% of the parent div.I probably explained it a bit complicated but overall I just look for a way to use CSS like grids without having to type defined widths each time, there must be a better way to position elements on your app that will fit the various different phone sizes.Also can't flutter just take width: 100%? why do I need to do the long way of MediaQuery just to get the device width? you never do window.innerWidth in javascript
September 07, 2021 at 03:02PM by Physics_Total
https://ift.tt/3A3AXSk
Looking for CSS like FR unit
Hi while doing some flutter courses I saw most of the time the instructor uses fixed sizes like 200, 300 etc.He mentioned the use of mediaquery to calculate the screen size and then take % of the space that you want of the screen, which is a much better approach.But coming from the web I really like that I can take a div and just create a grid inside it and define the width and height of items in that by fractions (fr) so basically I can say "item A takes 20% of the AVAILABLE SPACE, item B takes 50%, item C takes 30%" and then later I can take item B and create another grid inside it and create "b1,b2,b3 while b1 takes 60% of the available space, b2 takes 20%, b3 takes 20%" but since b1,b2,b3 are a part of B it means b1 is 60% of 50% of the space which is 30% of the parent div.I probably explained it a bit complicated but overall I just look for a way to use CSS like grids without having to type defined widths each time, there must be a better way to position elements on your app that will fit the various different phone sizes.Also can't flutter just take width: 100%? why do I need to do the long way of MediaQuery just to get the device width? you never do window.innerWidth in javascript
September 07, 2021 at 03:02PM by Physics_Total
https://ift.tt/3A3AXSk
Reddit
From the FlutterDev community on Reddit: Looking for CSS like FR unit
Posted by Physics_Total - 1 vote and 3 comments
New post on /r/flutterdev subreddit:
Add CarPlay to your Flutter App
https://ift.tt/2WXFB63
September 07, 2021 at 11:18PM by oguzhanatalay
https://ift.tt/3nd0OUj
Add CarPlay to your Flutter App
https://ift.tt/2WXFB63
September 07, 2021 at 11:18PM by oguzhanatalay
https://ift.tt/3nd0OUj
Oğuzhan Atalay's Blog
Add Apple CarPlay to your Flutter App
A guide on how to implement Apple CarPlay support to your Flutter Application. You can build your CarPlay App with Flutter. It's finally compatible!
New post on /r/flutterdev subreddit:
Build Simple Recipe App in Flutter
https://www.youtube.com/watch?v=5skucaAwn18&t=3s
September 08, 2021 at 05:43AM by Dhanraj_Flutterdev
https://ift.tt/3tASvmN
Build Simple Recipe App in Flutter
https://www.youtube.com/watch?v=5skucaAwn18&t=3s
September 08, 2021 at 05:43AM by Dhanraj_Flutterdev
https://ift.tt/3tASvmN
YouTube
Android Studio - Build A Simple Recipe Application in Flutter | Speed Code
In this video we will be build simplest recipe app made with flutter.
#flutter #flutterdev
Please subscribe to my channel to motivate me.
Channel Link: https://cutt.ly/kkhVx3s
Source Code: https://github.com/DhanrajNilkanth/flutter_simple_recipe_app/bl…
#flutter #flutterdev
Please subscribe to my channel to motivate me.
Channel Link: https://cutt.ly/kkhVx3s
Source Code: https://github.com/DhanrajNilkanth/flutter_simple_recipe_app/bl…
New post on /r/flutterdev subreddit:
Flutter and Firebase Authentication | Email & Password Login/SignUp
https://youtube.com/watch?v=3DO6Th9A7mY&feature=share
September 08, 2021 at 07:00AM by backslashflutter
https://ift.tt/3tlsUhs
Flutter and Firebase Authentication | Email & Password Login/SignUp
https://youtube.com/watch?v=3DO6Th9A7mY&feature=share
September 08, 2021 at 07:00AM by backslashflutter
https://ift.tt/3tlsUhs
YouTube
Flutter and Firebase Authentication | Email & Password Login/SignUp (Flutter 2.2) | Part 1
Flutter and Firebase Authentication | Email & Password Login/SignUp In Flutter 2.2
Today you’re going to learn the best way for flutter and firebase authentication and also implement Email and Password Login / Signup For beginners.
Flutter and Firebase together…
Today you’re going to learn the best way for flutter and firebase authentication and also implement Email and Password Login / Signup For beginners.
Flutter and Firebase together…
New post on /r/flutterdev subreddit:
Enough with Firebase Flutter authentication videos.
Is it just me or someone else feels this too. Flutter Firebase authentication has been implemented by almost all possible ways in countless videos and articles. Please people stop with Firebase authentication videos.
September 08, 2021 at 07:36AM by coolshiv28
https://ift.tt/3ndn7JU
Enough with Firebase Flutter authentication videos.
Is it just me or someone else feels this too. Flutter Firebase authentication has been implemented by almost all possible ways in countless videos and articles. Please people stop with Firebase authentication videos.
September 08, 2021 at 07:36AM by coolshiv28
https://ift.tt/3ndn7JU
Reddit
From the FlutterDev community on Reddit
Explore this post and more from the FlutterDev community
New post on /r/flutterdev subreddit:
[POC] Flutter MQTT client using MQTT protocol
Hello everyone,Since there is a shortage of Chat libraries in Flutter, I created a simple POC a week ago, it is a Flutter MQTT client for chatting app. The work is still in progress and I want you to give me some hints.You can check the application repo here.The Broker (MQTT server) that I used is HiveMQ with a custom chat extension.
September 08, 2021 at 11:00AM by Coffee__2__Code
https://ift.tt/3yU5WPE
[POC] Flutter MQTT client using MQTT protocol
Hello everyone,Since there is a shortage of Chat libraries in Flutter, I created a simple POC a week ago, it is a Flutter MQTT client for chatting app. The work is still in progress and I want you to give me some hints.You can check the application repo here.The Broker (MQTT server) that I used is HiveMQ with a custom chat extension.
September 08, 2021 at 11:00AM by Coffee__2__Code
https://ift.tt/3yU5WPE
GitHub
GitHub - WahidNasri/flutter-mqtt-chat-client: A Chat app developed with Flutter, it uses MQTT protocol
A Chat app developed with Flutter, it uses MQTT protocol - WahidNasri/flutter-mqtt-chat-client
New post on /r/flutterdev subreddit:
All my Flutter Animations Course projects are now on GitHub!
My Flutter Animations Course shows you how to build completely custom habit tracking application, along with some smaller projects such as the iOS stopwatch app.While the course is paid (and it was a lot of work to make!), I decided to share the source code for all the projects for free on GitHub:https://github.com/bizz84/flutter_animations_course_materialsThis repo also contains the full course syllabus, along with extra resources to learn about animations.Happy coding!
September 08, 2021 at 11:55AM by bizz84
https://ift.tt/3DY15jV
All my Flutter Animations Course projects are now on GitHub!
My Flutter Animations Course shows you how to build completely custom habit tracking application, along with some smaller projects such as the iOS stopwatch app.While the course is paid (and it was a lot of work to make!), I decided to share the source code for all the projects for free on GitHub:https://github.com/bizz84/flutter_animations_course_materialsThis repo also contains the full course syllabus, along with extra resources to learn about animations.Happy coding!
September 08, 2021 at 11:55AM by bizz84
https://ift.tt/3DY15jV
GitHub
GitHub - bizz84/flutter_animations_course_materials: All projects from my Flutter Animations Course
All projects from my Flutter Animations Course. Contribute to bizz84/flutter_animations_course_materials development by creating an account on GitHub.
New post on /r/flutterdev subreddit:
Magic URL authentication with Flutter and NOT Firebase 😅
https://twitter.com/appwrite_io/status/1435574286379540481?s=20
September 08, 2021 at 02:50PM by thecouchdev
https://ift.tt/3l3dryS
Magic URL authentication with Flutter and NOT Firebase 😅
https://twitter.com/appwrite_io/status/1435574286379540481?s=20
September 08, 2021 at 02:50PM by thecouchdev
https://ift.tt/3l3dryS
Twitter
Appwrite
Hey @FlutterDev 👋 Our #Flutter SDK now supports a new authentication method 😉 Learn more about Magic URL in our brand new tutorial on @ThePracticalDev 👇dev.to/appwrite/magic… PS: we got a perfect score on pub dev #OpenSource #flutterdev #100DaysOfCode #developers
New post on /r/flutterdev subreddit:
Flutter Listview Continuous Auto Scroll Back and Forth Using Recursion
https://youtu.be/Vc2YLoa0Cns
September 08, 2021 at 02:36PM by mheshm
https://ift.tt/38T7Fdr
Flutter Listview Continuous Auto Scroll Back and Forth Using Recursion
https://youtu.be/Vc2YLoa0Cns
September 08, 2021 at 02:36PM by mheshm
https://ift.tt/38T7Fdr
YouTube
Flutter Listview Continuous Auto Scroll Back and Forth Using Recursion
⭐Source Code: https://github.com/MahmoudHesham099/Flutter-Movies-Auto-Scroll-Listview
📢Design: https://www.behance.net/gallery/121016745/Mobile-app-for-watching-movies-TV-series
📢Remember to
Subscribe🔴, Like👍, Share↗️ this video, and Star the repo on Github⭐…
📢Design: https://www.behance.net/gallery/121016745/Mobile-app-for-watching-movies-TV-series
📢Remember to
Subscribe🔴, Like👍, Share↗️ this video, and Star the repo on Github⭐…
New post on /r/flutterdev subreddit:
Should I use SignalR with Flutter?
I need to add RTC features in my app. I am dotnet developer so I give chance firstly SignalR. Which one to should I use? SignalR, gRPC, SocketIO, Websocket. Also I need to use with Flutter. Is packages are enogh for SignalR.I am thinking like all backend system should be similar for performance. Can you give me advise for that?
September 08, 2021 at 03:34PM by Presentation-Short
https://ift.tt/3naEvPi
Should I use SignalR with Flutter?
I need to add RTC features in my app. I am dotnet developer so I give chance firstly SignalR. Which one to should I use? SignalR, gRPC, SocketIO, Websocket. Also I need to use with Flutter. Is packages are enogh for SignalR.I am thinking like all backend system should be similar for performance. Can you give me advise for that?
September 08, 2021 at 03:34PM by Presentation-Short
https://ift.tt/3naEvPi
reddit
Should I use SignalR with Flutter?
I need to add RTC features in my app. I am dotnet developer so I give chance firstly SignalR. Which one to should I use? SignalR, gRPC, SocketIO,...
New post on /r/flutterdev subreddit:
Is Flutter good for building a video sharing social network?
I am new to Flutter and I just wanna ask a really quick question:Is Flutter suitable to make a video sharing app(like Tiktok and Youtube).I've heard some review that Flutter currently has a poor media capibility.Is this true and what's compare to other cross-platform framework?Tks.
September 08, 2021 at 04:44PM by Emergency-Carpet-728
https://ift.tt/2X4pTq1
Is Flutter good for building a video sharing social network?
I am new to Flutter and I just wanna ask a really quick question:Is Flutter suitable to make a video sharing app(like Tiktok and Youtube).I've heard some review that Flutter currently has a poor media capibility.Is this true and what's compare to other cross-platform framework?Tks.
September 08, 2021 at 04:44PM by Emergency-Carpet-728
https://ift.tt/2X4pTq1
reddit
Is Flutter good for building a video sharing social network?
I am new to Flutter and I just wanna ask a really quick question:Is Flutter suitable to make a video sharing app(like Tiktok and Youtube).I've...
New post on /r/flutterdev subreddit:
Flutter App Lifecycles For Designers
https://ift.tt/3BTWihS
September 08, 2021 at 05:44PM by fredgrott
https://ift.tt/38RR75C
Flutter App Lifecycles For Designers
https://ift.tt/3BTWihS
September 08, 2021 at 05:44PM by fredgrott
https://ift.tt/38RR75C
Medium
Flutter App Lifecycles For Designers
One of the most confusing ideas transitioning from Android and/or iOS is to understand how Flutter handles its application lifecycle.
New post on /r/flutterdev subreddit:
Announcing the Flutter 2.5 stable release
Hello and welcome to Flutter 2.5! This is a big release, with the 2nd highest stats in the history of Flutter releases: 4600 issues closed and 3932 PRs merged from 252 contributors with 216 reviewers. If we look back over the last year, we see a huge 21,072 PRs created by 1337 contributors, of which 15,172 of them were merged. While the “what’s new in Flutter” blog posts focuses on new features, our #1 job with Flutter is always making sure you have the features you need at the highest possible quality level.And in fact, this release continues a number of important performance and tooling improvements to track down performance problems in your own app. At the same time, there are a number of new features, including full screen support for Android, more Material You (also called v3) support, updated text editing to support switchable keyboard shortcuts, a new, more detailed look at your widgets in the Widget Inspector, new support for adding dependencies in your Visual Studio Code projects, new support for getting coverage information from your test runs in IntelliJ/Android Studio and a whole new app template to serve as a better foundation for your real-world Flutter apps. This release is jam-packed with exciting new updates, which you can read about in the blog post:https://medium.com/flutter/whats-new-in-flutter-2-5-6f080c3f3dc
September 08, 2021 at 07:13PM by csells
https://ift.tt/3nb0Jkh
Announcing the Flutter 2.5 stable release
Hello and welcome to Flutter 2.5! This is a big release, with the 2nd highest stats in the history of Flutter releases: 4600 issues closed and 3932 PRs merged from 252 contributors with 216 reviewers. If we look back over the last year, we see a huge 21,072 PRs created by 1337 contributors, of which 15,172 of them were merged. While the “what’s new in Flutter” blog posts focuses on new features, our #1 job with Flutter is always making sure you have the features you need at the highest possible quality level.And in fact, this release continues a number of important performance and tooling improvements to track down performance problems in your own app. At the same time, there are a number of new features, including full screen support for Android, more Material You (also called v3) support, updated text editing to support switchable keyboard shortcuts, a new, more detailed look at your widgets in the Widget Inspector, new support for adding dependencies in your Visual Studio Code projects, new support for getting coverage information from your test runs in IntelliJ/Android Studio and a whole new app template to serve as a better foundation for your real-world Flutter apps. This release is jam-packed with exciting new updates, which you can read about in the blog post:https://medium.com/flutter/whats-new-in-flutter-2-5-6f080c3f3dc
September 08, 2021 at 07:13PM by csells
https://ift.tt/3nb0Jkh
Medium
What’s new in Flutter 2.5
Performance improvements, DevTools updates, new Material You support, a new app template, and more!