Flutter Heroes
26K subscribers
272 photos
2 videos
31.1K links
Download Telegram
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
New post on Flutter Dev Google group:

How to use async code inside map() (Flutter, Firestore)
Hey, I am working on a group chat app with Flutter and the Firestore Plugin. Getting the data from the database and converting the snapshot into a List of Messages works totally fine. But now I want to convert the uid from the database into the username (uid: username are saved in the db). This

November 21, 2019 at 04:41PM by J3ns
https://ift.tt/37st3nK
New tweet from FlutterDev:

πŸ‘ Thanks for all the valuable feedback on Flutter! πŸ‘

We're back with the Q3 survey results from over 7,500 Flutter users. πŸ‘₯

Read about it here &darr; https://t.co/e8a0eyYtQPβ€” Flutter (@FlutterDev) November 21, 2019

November 21, 2019 at 06:30PM
http://twitter.com/FlutterDev/status/1197567977006104576
New post on /r/flutterdev subreddit:

Install Flutter app onto iPhone
Hi, I have a Macbook Pro and an iPhone Xs. Can I develop a flutter app on my Mac, and then install it on my iPhone for testing without paying Apple?I see a lot of people trying to do this from a Windows machine but not a Mac.Thanks!

November 21, 2019 at 06:35PM by TopNFalvors
https://ift.tt/37rv9Ex
New post on /r/flutterdev subreddit:

Is Flutter the most ideal tech for a "Lime"(Electric scooter rental app)-like startup?
Hi people,I have been using Flutter for the past year and loving it. However I would like to get the thoughts of the community, especially the experienced developers who worked on production ready apps which require a large ecosystem of development. I think the feedback you give might be valuable to a lot of people/companies who are considering to use Flutter in a big project.If done with Flutter, what are the optimal guesses to the questions below: (Assume UI/UX design is ready along with assets, etc..)Is flutter OK for this project? (look at some of the project ingredients at the bottom of the post)How many Flutter developers are needed? (And what experience levels?)With a project of this size, what state management is best suited?Is Firebase OK for a project like this? (consider pricing while answering)How many Server side developers are needed?How many testers? (Unit tests will be written by the Flutter devs)How long for the MVP(minimal viable product) to be ready?How long needed for the App to be market ready?Please consider these requirements:(There might be some that I forgot to add. remind me if you want to add any)iOS/AndroidReal time info display(location of the scooters/battery levels/etc..)Payment servicesInternationalizingAccessibilityMaps and NavigationLocation PermissionCamera PermissionBarcode scannerPush NotificationsTestingAnalyticsCrashlyticsAnd things I forgotten to add...

November 21, 2019 at 06:11PM by aytunch
https://ift.tt/37r2YFS
New post on /r/flutterdev subreddit:

connecting to and returning results from a website
Hi, is there a built-in method in flutter to connect to a website and then parse the results?Thanks!

November 21, 2019 at 08:33PM by TopNFalvors
https://ift.tt/2QAR5ai
New post on /r/flutterdev subreddit:

Flutter winning me over SwiftUI
After spending some time with Flutter to create a mobile application for a small effort it was a pretty unique experience in that I really enjoyed the process with hot reload and being platform agnostic. I recently decided to give a try at SwiftUI and while its a great start it got very frustrating really quickly in that they don’t have a true hot reload feature and the structuring of an application was a mess. As a mainly iOS user it feels like I am cheating on a platform I have heavily invested in for a new more exciting development ecosystem.

November 21, 2019 at 08:57PM by rubenalvjr
https://ift.tt/2QH3zNw