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

PEG+ (Parsing expression grammar) parser generator.
PEG+ (Parsing expression grammar) parser generator.https://github.com/mezoni/peg2This is not a pure PEG (Parsing expression grammar).This is a slightly modified (extended) version of PEG with support for nonterminal, terminal and subterminal symbols.For those to whom it may be useful.

February 14, 2020 at 07:47PM by andrew_mezoni
https://ift.tt/2OQGaaI
New post on Flutter Dev Google group:

donation money & in app purchase
hi. anyone have any idea how to implement something so the user can donate money ? also what about in-app purchase I tried some examples it didn't work anyone has an example, please? thanks

February 14, 2020 at 07:55PM by Yasin
https://ift.tt/37vBUE2
New post on /r/flutterdev subreddit:

scaff | Scaffold Generator for Dart and Flutter
scaff is a simple command-line utility for generating Dart and Flutter components from template files. It is a very tedious job to keep replicating the boilerplate codes every time you try to add a new component in your app. Using scaff, you can generate dart or flutter components from the custom-defined templates. You can even add template schemes to the component directories and files for easy and flexible scaffolding.​Get the package from: https://pub.dev/packages/scaffGitHub: https://github.com/ganeshrvel/pub-scaff

February 14, 2020 at 08:20PM by ganeshrnet
https://ift.tt/2vx3zqT
New tweet from FlutterDev:

🤩#FlutterFriday🤩

Need to quickly find the code for a widget in the Flutter SDK?

Try a custom Chrome search using this string → https://t.co/8efTQ81slF

If you prefer another browser, many have extensions that allow for similar custom searches! pic.twitter.com/HbiJUGJJjl— Flutter (@FlutterDev) February 14, 2020

February 14, 2020 at 08:33PM
http://twitter.com/FlutterDev/status/1228401975055642624
New post on Flutter Dev Google group:

Build on iOS
I have been working on getting my app to build on iOS for 4 days now and can’t get it to work. I’ve upgraded to the newest hotfix for flutter, upgraded to Xcode 11, got thru all the weird errors that normally occur and now it hangs for hours on running Xcode build. No errors are thrown it just

February 14, 2020 at 10:04PM by Sam Cromer
https://ift.tt/2vvgxph
New post on /r/flutterdev subreddit:

Can I create the app for Android on Windows and then use a Mac after I am done to submit to the iOS store
Or do I need to write it on a Mac from the beginning

February 14, 2020 at 10:42PM by MKoverwatch
https://ift.tt/2OW48l0
New post on /r/flutterdev subreddit:

Problems with Visual Studio Code
When I run that default app with the counter..using my s10+ ... I am unable to get the counter +2 working. When I click the plus I get a message "virtual node must not be the root node".The counter works fine if I'm using Android studio to run it.

February 15, 2020 at 01:32AM by MKoverwatch
https://ift.tt/2OUHYj2
New post on /r/flutterdev subreddit:

Design question
How would you create a hollow circle that draws on the screen when the user sees it. If a percentage is given I want the circle to draw according to that. So if .50 was input, I want the circle to draw in until it's 180 degrees - so a semicircle.Thanks

February 15, 2020 at 05:10AM by MKoverwatch
https://ift.tt/2tY4kJ6
New post on Flutter Dev Google group:

New to flutter, appidea to learn?
Hi, Iam a senior frontend developer trying to learn flutter. Awesome framework! I just need some good ideas for apps to create to learn and get a portfolio, do you guys have any tips? Thanks Jeppe

February 15, 2020 at 09:21AM by jesper kramming
https://ift.tt/38uJi3V
New post on /r/flutterdev subreddit:

Question about component architecture design
I am creating two applications with really similar UI's and features just different navigation and some pagesHow can I let them share the API and some the screens?3 flutter projects? Or 1 with different flavours?

February 15, 2020 at 10:56AM by dreamer_soul
https://ift.tt/39vyy5k
New post on Flutter Dev Google group:

BottomNavigationBar with navigation, state preserve and going back to previous page with the bottom arrow
Hi! I've got into dart and flutter itself just a few days ago. I'm trying to achieve some basic functionality for the app so I started with navigation among certain views/pages/routes. I found several ways of doing so but none of these actually helped me to get to the point where everything is

February 15, 2020 at 01:28PM by ThatKidMike
https://ift.tt/2OVHFEE
New post on Flutter Dev Google group:

Estimate development efforts for a flutter app to display interactive dashboards
I am new to flutter.and i need to create mobile app for iOS ,Android, Windows to expose selected functionality to client top executives. The functionality needed is 1)Displaying interactive dashboards in the application for top management 2)Ability to download reports based on filters to select a

February 15, 2020 at 01:43PM by S B
https://ift.tt/2wmSY2p
New post on Flutter Dev Google group:

Custom icons creator
Hi guys I'm trying to create simple flat custom icons for my app. I've already tried Vectornator and Gravit to make svg file. However I get stuck on converting it to fonts on http://fluttericon.com I get an error If image looks not as expected please convert to *compound path < https://github.co

February 15, 2020 at 03:02PM by jet app
https://ift.tt/2uFkk3g
New post on Flutter Dev Google group:

flutter sdk is not found in the specified location
[image: 15817860475424321030341777689912.jpg] Dear team, Same problems in flutter sdk is not found in the specified location. Many time I am try but not resolved my problem. I am flutter install in C drive but..... I don't know where sdk path? Please help me Thanks and regards

February 15, 2020 at 06:04PM by Indrajeet Patil
https://ift.tt/38vT8Tb
New post on Flutter Dev Google group:

Page refreshes when it's resumed
I have simple page with AppBar, whenever app is paused and I come back to it, I see the whole page being refreshed - appBar, its title, body of the page. What should I do to keep page from being refreshed on resume?

February 15, 2020 at 07:59PM by Alex Kravets
https://ift.tt/2Htqh5U
New post on /r/flutterdev subreddit:

Pinterest UI/UX
I have two questions:How do I make the bottom navigation like Pinterest bottom navigation?How do I implement Pinterest long press and à pop icons appear and draging to the desired icon selects that?

February 15, 2020 at 08:54PM by MrYop
https://ift.tt/2UWB6FE
New post on /r/flutterdev subreddit:

How to change PageView physics dynamically with setState?
I am trying to create a way to slide to my second screen ONLY from the Home screen of my Child widget. This means if I am on the Search, Profile, etc. screen, the Physics of the PageView will switch to NeverScrollableScrollPhysics so that the second screen in the PageView can only be navigated to from the Home Screen.This is the DualScreen Class that is handing the PageView and controlling the switching between the two screens. The Physics is NOT rebuilding when I grab a new Index and change the _mainScreenCurrentIndex value in setState with the _getMainIndex callback function.
import 'package:flutter/material.dart'; import 'main_screen.dart'; import 'transaction_screen.dart'; class DualScreen extends StatefulWidget { @override _DualScreenState createState() => _DualScreenState(); } class _DualScreenState extends State<DualScreen> { @override Widget build(BuildContext context) { int _mainScreenCurrentIndex = 0; void _getMainIndex(int index) { setState(() { _mainScreenCurrentIndex = index; }); print(_mainScreenCurrentIndex); } final _pageController = PageController( initialPage: 0, ); return Scaffold( body: PageView( controller: _pageController, children: <Widget>[MainScreen(parentAction: _getMainIndex,), TransactionScreen()], pageSnapping: true, physics: _mainScreenCurrentIndex == 0 ? ClampingScrollPhysics() : NeverScrollableScrollPhysics())); } } 
This is the MainScreen that I am grabbing the index from.
import 'package:flutter/material.dart'; import 'home_screen.dart'; import 'search_screen.dart'; import 'qr_screen.dart'; import 'wallet_screen.dart'; import 'profile_screen.dart'; class MainScreen extends StatefulWidget { final void Function(int index) parentAction; MainScreen({this.parentAction}); @override _MainScreenState createState() => _MainScreenState(); } class _MainScreenState extends State<MainScreen> { int _currentIndex = 0; final List<Widget> _screens = <Widget>[ HomeScreen(), SearchScreen(), QrScreen(), WalletScreen(), ProfileScreen() ]; void onTabTapped(int index) { setState(() { _currentIndex = index; }); widget.parentAction(index); } @override Widget build(BuildContext context) { return Scaffold( backgroundColor: Color(0xfffafafa), body: _screens.elementAt(_currentIndex), bottomNavigationBar: BottomNavigationBar( showSelectedLabels: false, showUnselectedLabels: false, items: [ BottomNavigationBarItem( icon: Icon( Icons.home, color: _currentIndex == 0 ? Colors.amber : Colors.black, ), title: Text( 'Home', style: TextStyle(color: Colors.black), ), ), BottomNavigationBarItem( icon: Icon( Icons.search, color: _currentIndex == 1 ? Colors.amber : Colors.black, ), title: Text( 'Search', style: TextStyle(color: Colors.black), ), ), BottomNavigationBarItem( icon: _currentIndex == 2 ? Image.asset('assets/images/qr-code-2.png', height: 25, width: 25) : Image.asset('assets/images/qr-code.png', height: 25, width: 25), title: Text( 'Scan', style: TextStyle(color: Colors.black), )), BottomNavigationBarItem( icon: Icon(Icons.credit_card, color: _currentIndex == 3 ? Colors.amber : Colors.black), title: Text( 'Wallet', style: TextStyle(color: Colors.black), ), ), BottomNavigationBarItem( icon: Icon( Icons.person, color: _currentIndex == 4 ? Colors.amber : Colors.black, ), title: Text( 'Profile', style: TextStyle(color: Colors.black), )) ], type: BottomNavigationBarType.fixed, onTap: onTabTapped, currentIndex: _currentIndex, )); } } 


February 15, 2020 at 08:47PM by beardedblack
https://ift.tt/2UUcRaZ
New post on /r/flutterdev subreddit:

Convert Scikit-learn models to pure Dart code for on-device, offline ML using m2cgen Python tool with zero dependencies.
Disclaimer: I did not create m2cgen. I am only in the process of adding functionality to the project to convert sklearn models to Dart (my fork). My pull request is awaiting review, but I wanted to get this in front of some Flutter dev eyes asap. Big thanks to the contributors of the project!m2cgen is a great tool for allowing the conversion of sklearn models into native code, which allows sklearn capabilities almost anywhere. I think the number of on-device ML solutions for Flutter is bit lackluster, but I am excited to see how Google further implements Tensorflow Lite functionality into the framework.For relatively simple use cases and models, the less exciting approaches (linear/logistic regression, decision trees, etc.) actually are preferred due to simplicity and explainability. It is hard to argue for using a complex, resource-hungry neural network when a quick random forest model gets close to the same accuracy. On-device models are growing in popularity due to being completely private, offline, and more secure than sending data over the wire. Even with an absolute beast of a model hosted on a server, network latency could kill performance altogether, especially if the user needs to go offline and still use your app. List of supported models with m2cgen.This library opens up many of the capabilities of sklearn's powerful library for many languages. I hope that the soon to be added Dart support will come in handy for at least one of you in your various projects.I would appreciate if you could take a look at the pull request and offer any insight into the most effective way to structure the Dart code. It is pretty straightforward though.If you want to try it out before it gets merged into the main repo, you can check out my fork. It is working based on my testing. You can see a quick example in this jupyter notebook gist.I am happy to discuss in the comments! Happy fluttering.

February 15, 2020 at 10:09PM by FeelTheDataBeTheData
https://ift.tt/2Sw21GT