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

Which package to use to consume a REST API: Dio or Chopper?
I'm implementing a quite complex mobile application in Flutter thus I need to make a good decision here before going on and implementing the consumers of the API. I also saw Retrofit, no changes were made since 2 months thus I will not consider it for the moment. My time is limited thus I do not want to spend time forking and adding implementation myself.I wrote code using both Dio and Chopper. In the architecture I implemented in my project, a simple authentication(refresh token) request is implemented the following manner with Dio:
Future<Response> grantPasswordAuth(PasswordAuthRequest passwordAuthObject) { ApiUri apiUri = new ApiUri(PATH); // create path apiUri.addQueryParam('grant_type', 'password'); // add query params return post(apiUri, data: passwordAuthObject.toJson()); // call superclass method to POST } 
In Chopper on the other hand a simple request is implemented the following manner:
 @Post(headers: const { 'content-type': 'appliation/x-www-form-urlencoded', }, path: 'token') Future<Response> grantPasswordAuth(@Body() LoginUser loginUser); 
As you can see, regarding code length they are approximately the same.On the other hand, the differences I have come up with are:Chopper creates an extra file which increases the size of the project and its package structure complexity.Dio is more mature(the above code in Chopper using 'content-type': 'appliation/x-www-form-urlencoded' created many problems to me. Dio seems to not have any complexities that come unexpected.Dio is better maintained and has more functionalities.​Should I go for Dio since the problem that Chopper solves(which is generating biolerplate code) I have solved myself in Dio(the code for a POST request is very short and biolerplate code is avoided as you can see)? Looking forward to opinions of developers who have used both or have used one of them extensively and could tell me what kind of disadvantages are there that I can find out before starting to implement.

January 13, 2020 at 07:10PM by albaniantech
https://ift.tt/2QP4Sd3
New post on /r/flutterdev subreddit:

Embeddable JSON Database engine Flutter plugin. Both iOS and Android supported.
https://ift.tt/2Njgz9C

January 13, 2020 at 01:29PM by adamansky
https://ift.tt/2QQhzEv
New tweet from FlutterDev:

Need your app to display images?

Images bring your app to life! Image widget offers several constructors to display different types of images, wherever they may come from: assets, network, file system, RAM, and more.

More #WidgetoftheWeek here &rarr; https://t.co/1t10ChoWrq pic.twitter.com/lvst9P4lTE— Flutter (@FlutterDev) January 13, 2020

January 13, 2020 at 07:55PM
http://twitter.com/FlutterDev/status/1216795974279917570
New post on /r/flutterdev subreddit:

Here's a little package I've created : Flutter Week View. It allows you to display a highly customizable day / week widget.
Hey guys,I've created a little package that allows to display a highly customizable week view (or day view) which is able to display events, to be scrolled, to be zoomed-in & out and a lot more !It's compatible with iOS, Android and Web. Here is a screenshot of the DayView and here is a screenshot of the WeekView.Links :pub.dev : https://pub.dev/packages/flutter_week_viewSource code : https://github.com/Skyost/FlutterWeekView

January 13, 2020 at 10:27PM by Skyost
https://ift.tt/3a4H1gZ
New post on /r/flutterdev subreddit:

When to shut down the Dio client in Flutter's Dio package?
Dio has a method void close() which shuts down the Dio client when called. The question I have is: when should I call this method?The options obvious to me are:Call it after every "transaction of requests" is processed(most of the cases it would be calling it after every request I make in the REST API since most of the transactions are composed of a single request.)Never call it and leave the Dio client open all the time?Would the second option become a problem because of leaving the connection open all the time?Would the first option create considerable performance problems regarding the speed the requests are processed?

January 13, 2020 at 11:46PM by albaniantech
https://ift.tt/3a8e0kH
New post on /r/flutterdev subreddit:

Do you know how many packages in Pub.dev? According to libraries.io, there are more than 10k packages.
https://ift.tt/36QIaa5

January 14, 2020 at 03:19AM by anticafe
https://ift.tt/38eBCCv
New post on /r/flutterdev subreddit:

Onesignal issue on flutter
Has anyone experience extremely long build time after using Onesignal in flutter?

January 14, 2020 at 02:31AM by Fienases
https://ift.tt/2FOe6jq
New post on Flutter Dev Google group:

Proposal: Update the TextTheme API
Proposal for a (breaking) renaming change in the TextTheme API: flutter.dev/go/update-text-theme-api. The overall goal is to sync the TextTheme API's TextStyle names with the current Material design spec. Comments on the document are welcome.

January 14, 2020 at 02:55AM by hansmuller
https://ift.tt/2TmfCRC
New post on /r/flutterdev subreddit:

Quickblox launches Flutter SDK
https://ift.tt/2QRSo4v

January 14, 2020 at 09:03AM by llamapajama93
https://ift.tt/2tYa8lo
New post on /r/flutterdev subreddit:

In introduction to writing cli scripts using Dart and dshell.
https://ift.tt/387VYx7

January 14, 2020 at 08:26AM by bsutto
https://ift.tt/2uMHfcy
New post on Flutter Dev Google group:

Form Builder data saving issue
Hello guys, I need a help your efforts are really appreciable please help. I am creating a long form using formbuilder I need to save data instead of Text I need to save value from FormBuilderRadio . Presently it's like this FormBuilderRadio( decoration: InputDecoration(labelText: "Choose

January 14, 2020 at 11:08AM by Sangeeta Kumari
https://ift.tt/2TnWoes
New post on /r/flutterdev subreddit:

I published my 2nd Flutter app and AppStore just approved it!
Hi guys.First of all, flutter has changed my life. I enjoy developing again. I even convinced managers at my day job to switch to Flutter. Every new project is created in Flutter. So I am helping the adoption as much as I can.Wanted to share another milestone for me. Been working on it for last 6 months in the evenings.
It's called Timecap. This app tracks time in a goal/limit based way. I like to consider it a ScreenTime for your life.Any feedback is appreciated.
Google Play: https://play.google.com/store/apps/details?id=com.ziggycrane.time
AppStore: https://apps.apple.com/us/app/timecap-track-your-time-goals/id1494584871?ls=1

January 14, 2020 at 11:48AM by ziggycrane
https://ift.tt/2QP7ojk
New post on /r/flutterdev subreddit:

Is Flutter safe for new Apple rules effective April 2020?
> Apps should look great on all models of iPhone and iPad, regardless of display size or aspect ratio. With features like Xcode storyboards and Auto Layout, your app’s interface elements and layouts automatically fit the display. As announced at WWDC19, starting April 2020, apps submitted to the App Store must use an Xcode storyboard to provide the app’s launch screen and must have an interface that supports any display size.> Support for Multitasking on iPad is strongly encouraged. Adding support for multiple windows, and adopting Multitasking capabilities, including Slide Over, Split View, and Picture in Picture, will ensure your app delivers a modern and complete experience on iPadOS.Above is the latest from official Apple Developer News. Specifically the portion "starting April 2020, apps submitted to the App Store must use an Xcode storyboard to provide the app’s launch screen and must have an interface that supports any display size". I can see LaunchScreen.storyboard and Main.storyboard inside iOS Runner Xcode Workspace, not sure if Flutter is setup to use them. The news also suggest we'll now require to test Flutter apps running on iPad.

January 14, 2020 at 02:45PM by etca2z
https://ift.tt/389eLbp
New post on /r/flutterdev subreddit:

Flutter Web SEO
The support of Flutter for the web is awesome, but does it make sense to develop my website with Flutter according to SEO? So whats the point using flutter if my website doesnt get found?

January 14, 2020 at 03:49PM by T0kwe0
https://ift.tt/36TNmKg
New post on /r/flutterdev subreddit:

[My first app] the unpaprd.
Hey guys. I recently made an audiobook app in flutter. Please download, review and share.PS link: https://kutt.it/YsIl36 Link for the source code: GitHub.com/gargakshit/unpaprdThanks

January 13, 2020 at 09:20PM by AkshitGarg
https://ift.tt/2FL2QEm
New post on /r/flutterdev subreddit:

New plugins for handling and simulating BLE
Hi!I'm one of the developers from Polidea that worked on a new version of FlutterBleLib and a brand new plugin called BLEmulator, which is a BLE simulator for Flutter. Both are free and open source! Both plugins are supporting only Android and iOS.Here are the packages:https://pub.dev/packages/flutter_ble_libhttps://pub.dev/packages/blemulatorWe've also released a blogpost explaining how it works, decisions made and the reasons behind them, and the basics of how to use them: http://bit.ly/Polidea_BLEmulatorIf you find any bugs, please create an issue on GitHub. I'm periodically checking Stack Overflow for anything related to any of those, so if you run into any problems, be sure to ask your question there.Hope you'll like 'em!Cheers!

January 14, 2020 at 03:18PM by Calot
https://ift.tt/36X8UFO
New tweet from FlutterDev:

🌌This un-animated galaxy doesn’t feel very galactic... yet! 💫

Get control over your animations using explicit animations. Learn about direction animations with built-in Transition widgets as we mix-in rotation, and more!

In @Fitzface's post &darr; https://t.co/1y5XIPaScO— Flutter (@FlutterDev) January 14, 2020

January 14, 2020 at 06:00PM
http://twitter.com/FlutterDev/status/1217129248210792449
New post on /r/flutterdev subreddit:

[D] The Flutter Architecture
The Flutter SDK allows you to build Android, iOS, web, and desktop apps from a single codebase. This is done using platform-specific features as well as media queries, and it enables developers to ship applications faster. Flutter also offers close- to-instant feedback with the hot reload feature, enabling you to iterate quickly on your application.In this piece, we’ll cover the fundamental concepts you need in order to start working with Flutter.https://heartbeat.fritz.ai/the-flutter-architecture-9d3a5f30bb25

January 14, 2020 at 06:38PM by mwitiderrick
https://ift.tt/2u2ueeg
New post on /r/flutterdev subreddit:

Flutter - Add Share feature (Subscriber Requested)
https://www.youtube.com/watch?v=Z45mpurtOhE

January 14, 2020 at 06:34PM by cmcoffee91
https://ift.tt/3ajvB9o