Flutter Heroes
26.1K subscribers
272 photos
2 videos
31.1K links
Download Telegram
New post on Flutter Dev Google group:

Bloc - saving events in a state event map and dispatching event by state.
hey, i am trying to create a multistep registeration. i have an inherited widget (viewManager) which holds the steps and the bloc, the viewManager has a nextStep function, which takes the current state and from the steps map it pulls the right event and returns it. final Map
New post on /r/flutterdev subreddit:

Type Alias
Anyone knows how to do the following code (in typescript) in dart?​type MyType = {name: stringemail: string}final x: MyType = {name: 'x', email: 'y'}

November 20, 2019 at 04:10PM by __yv
https://ift.tt/2KF4E4K
New tweet from FlutterDev:

πŸ“šπŸ₯³Level up your skills with #WidgetoftheWeek!

Want to drag a widget onto the screen and scroll it? Use DraggableScrollableSheet to get the job done!

Get more here → https://t.co/AyN0X11V44 pic.twitter.com/vdAGMhP1Bkβ€” Flutter (@FlutterDev) November 20, 2019

November 20, 2019 at 08:23PM
http://twitter.com/FlutterDev/status/1197234075800440833
New post on /r/flutterdev subreddit:

New audio player plugin
I've published a new Flutter plugin for audio playback, "audiofileplayer".pub and sourceWhile there's a lot of audio player packages already, I like to think I've combined the best features from them, and, more importantly, addressed some common shortcomings. This plugin:Can play from local data from the Flutter assets without copying to other folders; also can play from remote URLs, and raw byte data.Has correct memory management via a dispose() method. (some other plugins leak the audio data on every load)Please give it a whirl, and file any issues on the Github issue tracker.Edit: formatting

November 20, 2019 at 08:48PM by EternitysMansions
https://ift.tt/2pAk6aT
New post on /r/flutterdev subreddit:

Sqlite good practice: should I keep a local list variable of a table so that I don't need to run query everytime I insert a new row?
I am not sure which method is a better practice. Let say I have a table containing a bunch of to-do items. When inserting new item, should I 1) Append to a local list, insert into the table, display the local list with a widget. Or 2) Insert into the table first, then query the table and map the result into a list, display this list with a widget.

November 20, 2019 at 08:43PM by rokcr
https://ift.tt/2XBAa98
New post on /r/flutterdev subreddit:

How to fetch posts according to categories from wordpress rest API in Flutter
https://ift.tt/2KDVS79

November 20, 2019 at 09:29PM by Pramod_Bhai
https://ift.tt/2pGB4EM
New post on /r/flutterdev subreddit:

Click to expand a SliverAppBar
I have been wondering how to approach this with no luck.What I would like to try to implement is the ability to click a SliverAppBar so that when the title (or flexible space) is tapped, it expands to cover the entire screen. I would also like it to collapse back down to its previous size when the title (or flexible space) is tapped again.I have been thinking that maybe creating a custom PreferredSizeWidget to occupy the bottom widget and changing its preferred size on tap could work, but I still have the issue of correctly determining how much size it should occupy when it is expanded.If anyone has any idea or samples of code to share, I would really appreciate it. Thanks!

November 20, 2019 at 11:58PM by banana_shavings
https://ift.tt/2QyuLy5
New post on /r/flutterdev subreddit:

How to import a dart file from a directory from a local file?
I am a student and very new to flutter/dart so I am incredibly sorry if I make mistakes along the way or just sound like a noob.I have an application I am currently working on and I have some classes I want to import.I want to make a simple console application, but to not copy and to always have the same updated classes how do I import the classes from a folder.I tried the following:made a folder called "WindowsApp"made another folder called "lib" (because for some reason it is the only I can run the main)made a file "main.dart"and had the following codeimport '<directory>\\foo.dart';void main(){print('test');}it says that the directory doesn't exist? In java I remember doing something similar and it worked, but I seem to not have same logic work here.The research I have done it is still foggy as to what to do because one answer is to use Source, an other provided what I wanted, but didn't show the code and the code that was shown introduced a new thing called library. Is there no simple way like java where you just put in the directory and that is it?Do i need a full blown project with a YAML and all if I wanted to use API's and such?

November 21, 2019 at 02:40AM by bigpete08
https://ift.tt/2D0Z5t7
New post on Flutter Dev Google group:

Prevent Flutter to build web-only file
Hi everyone ! I'm trying to develop an app for both Web and Mobile. Web is working fine but when i build for mobile i get those errors... Compiler message: lib/web_injection.dart:1:8: Error: Not found: 'dart:html' import 'dart:html'; lib/web_injection.dart:6:28: Error: 'Storage' isn't a

November 21, 2019 at 08:55AM by ClΓ©ment K
https://ift.tt/2O8NCxO
New post on /r/flutterdev subreddit:

How to Write a Flutter Web Plugin
https://ift.tt/332yjv7

November 21, 2019 at 08:49AM by Purple_Pizzazz
https://ift.tt/3484RFk
New post on /r/flutterdev subreddit:

DropdownButtonFormField not showing inside Row
Hi, new to Flutter here and im adding a DropdownFormField and TextFormField side by side inside a Row. This is how it looks like
Widget build(BuildContext context) { return Form( key: _formKey, child: SingleChildScrollView( child: Column( children: <Widget>[ Row( mainAxisAlignment: MainAxisAlignment.start, children: <Widget>[ DropdownButton( hint: new Text('Select Gender'), items: _salutations, value: client.salutation, ), SizedBox(width: 20), new Expanded( child: TextFormField( decoration: InputDecoration(labelText: 'Name'), validator: (value) { return value.isEmpty ? 'Empty name.' : ''; }, ), ), ] ) ], ) ), ); } 
That code currently shows because it is DropdownButton. But if I change it to DropdownButtonFormField it won't show, as long as it is in the Row(). Why is this?I wish to use DropdownButtonFormField so that the height of the Dropdown will be the same as the TextFormField since the current code shows the dropdown with a smaller height.

November 21, 2019 at 10:50AM by chitgoks
https://ift.tt/35jMYn4
New post on /r/flutterdev subreddit:

has anyone here tried wrapping flutter web inside electron application ? if yes , i would like to know how
i was wondering until flutter desktop stabilizes , we can wrap flutter web application inside electron application

November 21, 2019 at 10:45AM by dilawar_uchiha
https://ift.tt/2O98WmQ
New post on /r/flutterdev subreddit:

Reusable form validation with flrx_validator
Hi all, we have created a Validator library which allows you to easily validate your forms. Both the validator and the rules can be easily extended.It's as simple as doing this
TextFormField( validator: Validator<String>( rules: [RequiredRule(), EmailRule()] ) ); 
Some of the Built In RulesAnyRuleEachRuleEmailRuleInRuleMaxLengthRuleMinLengthRuleNotInRuleRegexRuleRequiredRuleFlrx ValidatorDo check it out and let us know what you think about it.

November 21, 2019 at 10:30AM by ibrahim_mubarak
https://ift.tt/2O8fcvp
New post on Flutter Dev Google group:

sqflite offline storage data
How to store online data to offline data in flutter application ?where located sqflite .db database n flutter project structure ? i have not view offline data through interface . how to view offline sqflite data in flutter appplication?plz reply /

November 21, 2019 at 12:59PM by Munish Rathore
https://ift.tt/34a45rc
New post on /r/flutterdev subreddit:

Unit Testing: Bloc Library & Codemagic by Felix Angelov
https://ift.tt/2O6Ik5X

November 21, 2019 at 01:11PM by Gigatronbot
https://ift.tt/336buql
New post on Flutter Dev Google group:

How to store a object in Table moor?
How do we store this type of JSON to Moor
New post on /r/flutterdev subreddit:

Extended capabilities for collections
Hello everyone, recently we've created dart package that improves operating the collections, it's called flinq.It adds extension getters and methods such as firstOrNull, firstOrNullWhere, mapList, min, max, sum, average, etc.Here's the link

November 21, 2019 at 02:53PM by ExReflect10n
https://ift.tt/2ra4yeC
New post on /r/flutterdev subreddit:

IOS Bug, keyboard not showing up.
We encontered a problem in IOS, we have tested many webview packages from https://pub.dev/ and all the solutions ends with the same result.When the innapp website opens, it loads perfectly, but when you interact with an input, the keyboard doesn't seems show up, it occurs in all the inputs from all the pages.Thanks in advance!.IMAGE of the errorThe error log output is: Probably at least one of the constraints in the following list is one you don't want. Try this: (1) look at each constraint and try to figure out which you don't expect; (2) find the code that added the unwanted constraint or constraints and fix it. (Note: If you're seeing NSAutoresizingMaskLayoutConstraints that you don't understand, refer to the documentation for the UIView property translatesAutoresizingMaskIntoConstraints) (    "<NSAutoresizingMaskLayoutConstraint:0x6040004826c0 h=-&- v=-&- UIToolbar:0x7fcec747c950.width == \_UIInputViewContent:0x7fcec74aede0.width   (active)>",    "<NSAutoresizingMaskLayoutConstraint:0x600000487440 h=--& v=--& \_UIInputViewContent:0x7fcec74aede0.width == 0   (active)>",    "<NSLayoutConstraint:0x6000004839d0 H:|-(0)-\[\_UIButtonBarStackView:0x7fcec74bfd40\]   (active, names: '|':\_UIToolbarContentView:0x7fcec743d460 )>",    "<NSLayoutConstraint:0x600000483a70 \_UIButtonBarStackView:0x7fcec74bfd40.trailing == \_UIToolbarContentView:0x7fcec743d460.trailing + 8   (active)>",    "<NSLayoutConstraint:0x6000004845b0 \_UIToolbarContentView:0x7fcec743d460.trailing == UIToolbar:0x7fcec747c950.trailing   (active)>",    "<NSLayoutConstraint:0x60000009f1d0 H:|-(0)-\[\_UIToolbarContentView:0x7fcec743d460\]   (active, names: '|':UIToolbar:0x7fcec747c950 )>",    "<NSLayoutConstraint:0x604000480730 H:|-(>=5)-[_UIModernBarButton:0x7fcec75b34b0]   (active, names: '|':_UIButtonBarButton:0x7fcec75b2e40 )>",    "<NSLayoutConstraint:0x604000480780 H:\[\_UIModernBarButton:0x7fcec75b34b0\]-(>=5)-|   (active, names: '|':_UIButtonBarButton:0x7fcec75b2e40 )>",    "<NSLayoutConstraint:0x604000481310 H:|-(8)-\[\_UIModernBarButton:0x7fcec75b4060'Done'\]   (active, names: '|':\_UIButtonBarButton:0x7fcec75b39d0 )>",    "<NSLayoutConstraint:0x604000481360 H:\[\_UIModernBarButton:0x7fcec75b4060'Done'\]-(0)-|   (active, names: '|':\_UIButtonBarButton:0x7fcec75b39d0 )>",

November 21, 2019 at 03:40PM by PsHye18
https://ift.tt/2OubzPg