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
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
reddit
Pinterest UI/UX
I have two questions: 1. How do I make the bottom navigation like Pinterest bottom navigation? 2. How do I implement Pinterest long press and à...
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.
February 15, 2020 at 08:47PM by beardedblack
https://ift.tt/2UUcRaZ
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
reddit
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,...
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
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
GitHub
GitHub - BayesWitnesses/m2cgen: Transform ML models into a native code (Java, C, Python, Go, JavaScript, Visual Basic, C#, R, PowerShell…
Transform ML models into a native code (Java, C, Python, Go, JavaScript, Visual Basic, C#, R, PowerShell, PHP, Dart, Haskell, Ruby, F#, Rust) with zero dependencies - BayesWitnesses/m2cgen
New post on /r/flutterdev subreddit:
Tree shake icon fonts (since v1.15.1)
Flutter now has functionality to shake out unused icons from Material, Cupertino, FontAwesome, etc. fonts. For now the functionality is opt in. It is also only available in profile or release builds (in a dev build we're likely to do more harm than good by slowing down hot reload/restart and probably still getting it wrong with the way incremental kernel compiles work).You can try this out on the latest dev releases (not on beta yet). Word of warning, there are some known issues with the current dev channel. The command is
February 15, 2020 at 11:42PM by dnfield
https://ift.tt/38Hdk4J
Tree shake icon fonts (since v1.15.1)
Flutter now has functionality to shake out unused icons from Material, Cupertino, FontAwesome, etc. fonts. For now the functionality is opt in. It is also only available in profile or release builds (in a dev build we're likely to do more harm than good by slowing down hot reload/restart and probably still getting it wrong with the way incremental kernel compiles work).You can try this out on the latest dev releases (not on beta yet). Word of warning, there are some known issues with the current dev channel. The command is
flutter run --tree-shake-icons --profile
. It can also be run with the various flutter build
commands. If you're building from Xcode, you can set the TREE_SHAKE_ICONS
environment variable; from gradle, it would be setting the tree-shake-icons
property in the gradle properties.We're using this feature for builds of Google apps and should get good coverage there, but it would be great to hear from the community how this is working out. For typical apps using Material icons, you can expect to save between 60 and 100kb.If you're interested in the implementation details, you can review the following:https://github.com/flutter/flutter/pull/49737https://github.com/flutter/engine/pull/14828https://github.com/flutter/engine/pull/15668We'd like to eventually make this opt-out (on by default), but want to make sure it's working for various use cases out there first.Oh, and it's currently only available for iOS, Android, and macOS. Linux and Windows should be fairly easy to do, web will be a bit harder but possible.February 15, 2020 at 11:42PM by dnfield
https://ift.tt/38Hdk4J
GitHub
Font subset in the tool by dnfield · Pull Request #49737 · flutter/flutter
Description
Shakes out unused icon fonts from Flutter applications. This reduces the Gallery by 100kb.
Wires in the font subetting logic to the assets target, defaulted to off, only available in ...
Shakes out unused icon fonts from Flutter applications. This reduces the Gallery by 100kb.
Wires in the font subetting logic to the assets target, defaulted to off, only available in ...
New post on /r/flutterdev subreddit:
Wallet App UI
https://ift.tt/2uRUR6H
February 15, 2020 at 06:18AM by Ganeshp98
https://ift.tt/2OVHY2n
Wallet App UI
https://ift.tt/2uRUR6H
February 15, 2020 at 06:18AM by Ganeshp98
https://ift.tt/2OVHY2n
GitHub
shenoyganeshprasad/Wallet-App-UI-Flutter
Wallet App UI created in Flutter. Contribute to shenoyganeshprasad/Wallet-App-UI-Flutter development by creating an account on GitHub.
New post on /r/flutterdev subreddit:
scaff | scaff is a simple command-line utility for generating Dart and Flutter components from template files.
https://ift.tt/2P0iNf4
February 15, 2020 at 03:38PM by ganeshrnet
https://ift.tt/38yMg7t
scaff | scaff is a simple command-line utility for generating Dart and Flutter components from template files.
https://ift.tt/2P0iNf4
February 15, 2020 at 03:38PM by ganeshrnet
https://ift.tt/38yMg7t
Dart packages
scaff | Dart Package
scaff (scaffold generator) is a simple command-line utility for generating Dart and Flutter components from template files.
New post on /r/flutterdev subreddit:
I've created a package to get better feedback from users
https://ift.tt/3bQ9ckO
February 15, 2020 at 04:29PM by ueman
https://ift.tt/38wZ4LG
I've created a package to get better feedback from users
https://ift.tt/3bQ9ckO
February 15, 2020 at 04:29PM by ueman
https://ift.tt/38wZ4LG
Dart packages
feedback | Flutter Package
A Flutter package for getting better feedback. It allows the user to give interactive feedback directly in the app.
New post on /r/flutterdev subreddit:
Comparing freezed to built_value
https://ift.tt/2wlbUOU
February 16, 2020 at 12:01AM by oaga_strizzi
https://ift.tt/37rIn2Z
Comparing freezed to built_value
https://ift.tt/2wlbUOU
February 16, 2020 at 12:01AM by oaga_strizzi
https://ift.tt/37rIn2Z
Medium
Comparing freezed to built_value
How the new library for immutable data classes and unions compares against built_value
New post on /r/flutterdev subreddit:
How To Develop A Grocery App With Flutter for Android/ iOS
https://ift.tt/2uEq3X5
February 16, 2020 at 12:04AM by Purple_Pizzazz
https://ift.tt/2SMpFOf
How To Develop A Grocery App With Flutter for Android/ iOS
https://ift.tt/2uEq3X5
February 16, 2020 at 12:04AM by Purple_Pizzazz
https://ift.tt/2SMpFOf
Medium
How To Develop A Grocery App With Flutter for Android/ iOS
Whether you are thinking of starting your online grocery business or want to create an online presence of your traditional grocery store…
New post on /r/flutterdev subreddit:
Flutter, Fastlane, and Firebase App Distribution
https://ift.tt/2SQU9P5
February 16, 2020 at 12:06AM by Purple_Pizzazz
https://ift.tt/2u0XSRE
Flutter, Fastlane, and Firebase App Distribution
https://ift.tt/2SQU9P5
February 16, 2020 at 12:06AM by Purple_Pizzazz
https://ift.tt/2u0XSRE
chimon.hashnode.dev
Flutter, Fastlane, and Firebase App Distribution
Recently I was tasked with implementing app distribution as part of our CI/CD process. Being generally allergic to DevOps, I would have immediately reached for CodeMagic. Unfortunately, our client required the use of Azure DevOps 😞, but on the brigh...
New post on /r/flutterdev subreddit:
Reveal under mask (cookie cutter effect)
I'm a Flutter beginner and looking to implement a mask feature where the shape of the image "cuts-through" the image underneath it. Like a cookie-cutter. Unity3d has something similar feature in Sprite MaskBased on the research I have done, it seems to me that it can be done using ShaderMask or CustomPainter. Any other solutions ?
February 16, 2020 at 01:39AM by jamesmillerenium
https://ift.tt/37oLPeE
Reveal under mask (cookie cutter effect)
I'm a Flutter beginner and looking to implement a mask feature where the shape of the image "cuts-through" the image underneath it. Like a cookie-cutter. Unity3d has something similar feature in Sprite MaskBased on the research I have done, it seems to me that it can be done using ShaderMask or CustomPainter. Any other solutions ?
February 16, 2020 at 01:39AM by jamesmillerenium
https://ift.tt/37oLPeE
Unity3D
Unity - Manual: Sprite Masks
New post on /r/flutterdev subreddit:
Flutter Grocery shopping App UI Design Part 2
https://youtu.be/3PQbKVTetZE
February 16, 2020 at 06:26AM by vilhd
https://ift.tt/37uBcqO
Flutter Grocery shopping App UI Design Part 2
https://youtu.be/3PQbKVTetZE
February 16, 2020 at 06:26AM by vilhd
https://ift.tt/37uBcqO
YouTube
Flutter UI | Minimal UI Designs | Grocery Shopping App | Part-2 | Protorix Code
In this video, we are going to design the second part of the Grocery shopping App UI using Flutter.
#flutter #flutterui #flutterdesign #flutteruidesign #protorixcode #ui #uidesign #android #ios #design #groceryapp #shopping app #googleflutter #uichallenges…
#flutter #flutterui #flutterdesign #flutteruidesign #protorixcode #ui #uidesign #android #ios #design #groceryapp #shopping app #googleflutter #uichallenges…
New post on /r/flutterdev subreddit:
How to control device back button?
Is there any way to control device back button.
February 16, 2020 at 08:24AM by BlueBoxxx
https://ift.tt/2wlu1UV
How to control device back button?
Is there any way to control device back button.
February 16, 2020 at 08:24AM by BlueBoxxx
https://ift.tt/2wlu1UV
reddit
How to control device back button?
Is there any way to control device back button.
New post on /r/flutterdev subreddit:
Draw? | Flutter GAME Tutorial | Tic Tac Toe #6
https://youtu.be/woRS3PLIgHI
February 16, 2020 at 08:14AM by Heisenlife
https://ift.tt/2PdpCdp
Draw? | Flutter GAME Tutorial | Tic Tac Toe #6
https://youtu.be/woRS3PLIgHI
February 16, 2020 at 08:14AM by Heisenlife
https://ift.tt/2PdpCdp
YouTube
TIC TAC TOE • 6 • FLUTTER
💰 Flutter UI Course for BEGINNERS: https://mitchkoko.gumroad.com/l/BeginnerFlutterUICourse
💰 Download Pre-made Flutter Apps & Games • https://mitchkoko.gumroad.com
website: https://mitchkoko.app
instagram: https://www.instagram.com/createdbykoko
-------…
💰 Download Pre-made Flutter Apps & Games • https://mitchkoko.gumroad.com
website: https://mitchkoko.app
instagram: https://www.instagram.com/createdbykoko
-------…
New post on /r/flutterdev subreddit:
Real time Theme chat app
https://github.com/Chunlee17/flutter_theme_chat
a chat app that allow Light theme user and dark theme user can chat with each other with emoji support and dummy story viewer
February 16, 2020 at 10:28AM by Fienases
https://ift.tt/2SywgwJ
Real time Theme chat app
https://github.com/Chunlee17/flutter_theme_chat
a chat app that allow Light theme user and dark theme user can chat with each other with emoji support and dummy story viewer
February 16, 2020 at 10:28AM by Fienases
https://ift.tt/2SywgwJ
New post on /r/flutterdev subreddit:
Soft UI Music Player in Flutter
https://youtu.be/Qf-1ZP_bjsY
February 16, 2020 at 09:46AM by voidnen
https://ift.tt/39HYAm9
Soft UI Music Player in Flutter
https://youtu.be/Qf-1ZP_bjsY
February 16, 2020 at 09:46AM by voidnen
https://ift.tt/39HYAm9
YouTube
Flutter Soft UI Designing | Music App Design Flutter | Beautiful UI Design in Flutter | Neumorphism
Hey guys back with a new video. In this video, we will learn how to create a beautiful Soft UI in Flutter.Neumorphism or Soft UI. Some are saying it is going...
New post on /r/flutterdev subreddit:
Flutter Neumorphic Timer: Design and Buttons
https://youtu.be/L6g4eRlAsh0
February 16, 2020 at 10:57AM by thehappyharis
https://ift.tt/2OYsZVr
Flutter Neumorphic Timer: Design and Buttons
https://youtu.be/L6g4eRlAsh0
February 16, 2020 at 10:57AM by thehappyharis
https://ift.tt/2OYsZVr
YouTube
Flutter Neumorphic Timer: Design and Buttons
Full source code is here : https://github.com/happyharis/neumorphic/tree/master/lib/timer
I explained my workflow of how I translate code into design using high fidelity and low fidelity concepts.
This is part 1 to 3 parts series of how I make a Neumorphic…
I explained my workflow of how I translate code into design using high fidelity and low fidelity concepts.
This is part 1 to 3 parts series of how I make a Neumorphic…
New post on /r/flutterdev subreddit:
QR Code Generator App (using Image.network and open API) - Code Along
https://youtu.be/r3-TbIha-S0
February 16, 2020 at 11:40AM by vishesh_allahabadi
https://ift.tt/2UTEaSY
QR Code Generator App (using Image.network and open API) - Code Along
https://youtu.be/r3-TbIha-S0
February 16, 2020 at 11:40AM by vishesh_allahabadi
https://ift.tt/2UTEaSY
YouTube
Flutter - QR Code Generator App - Flutter App Code Along (Using Image.Network)
Code Along video for QR Code Generator App, Flutter App Code Along both for Android and iOS apps. PLAYSTORE APP LINK: https://play.google.com/store/apps/deta...
New post on /r/flutterdev subreddit:
Hi please someone help me on this for my internship
hello guys I kinda need helpvoid _startScanning() { setState(() { _stream = NFC.readNDEF(once: true).listen((NDEFMessage message) { print("Read NDEF message with ${message.records.length} records"); for (NDEFRecord record in message.records) { print( "Record '${record.id ?? "[NO ID]"}' with TNF '${record.tnf}', type '${record.type}', payload '${record.payload}' and data '${record.data}' and language code '${record.languageCode}'"); } }); }); }I used this functionI/flutter ( 633): Read NDEF message with 1 records I/flutter ( 633): Record '' with TNF 'NFCTypeNameFormat.well_known', type 'U', payload 'geo:27.719733645761856,85.31858292429993' and data 'geo:27.719733645761856,85.31858292429993' and language code 'null'and I got this on my consolenow I want to print this in my applicationps I'm beginner and my internship depends on this please if anyone can help
February 16, 2020 at 11:39AM by swostikg
https://ift.tt/2uGlGuF
Hi please someone help me on this for my internship
hello guys I kinda need helpvoid _startScanning() { setState(() { _stream = NFC.readNDEF(once: true).listen((NDEFMessage message) { print("Read NDEF message with ${message.records.length} records"); for (NDEFRecord record in message.records) { print( "Record '${record.id ?? "[NO ID]"}' with TNF '${record.tnf}', type '${record.type}', payload '${record.payload}' and data '${record.data}' and language code '${record.languageCode}'"); } }); }); }I used this functionI/flutter ( 633): Read NDEF message with 1 records I/flutter ( 633): Record '' with TNF 'NFCTypeNameFormat.well_known', type 'U', payload 'geo:27.719733645761856,85.31858292429993' and data 'geo:27.719733645761856,85.31858292429993' and language code 'null'and I got this on my consolenow I want to print this in my applicationps I'm beginner and my internship depends on this please if anyone can help
February 16, 2020 at 11:39AM by swostikg
https://ift.tt/2uGlGuF
reddit
Hi please someone help me on this for my internship
hello guys I kinda need help void \_startScanning() { setState(() { \_stream = NFC.readNDEF(once: true).listen((NDEFMessage message) { ...
New post on Flutter Dev Google group:
firebase ml kit
Can we have some video related to,how to use ml kit of firebase in flutter?
February 16, 2020 at 12:44PM by Anant Kumar
https://ift.tt/2Sx3yMU
firebase ml kit
Can we have some video related to,how to use ml kit of firebase in flutter?
February 16, 2020 at 12:44PM by Anant Kumar
https://ift.tt/2Sx3yMU
Google
Google Groups
Google Groups allows you to create and participate in online forums and email-based groups with a rich experience for community conversations.
New post on Flutter Dev Google group:
Using routes to manage widget visiblity
Hi, I'm currently using a stack that has an a background widget that should be visible between several screens and currently what im doing is using visibility to manage the currently displayed set of widgets and manually implementing going back and forward. How would it be possible to use
February 16, 2020 at 01:10PM by Alex McGrath
https://ift.tt/38BFYE8
Using routes to manage widget visiblity
Hi, I'm currently using a stack that has an a background widget that should be visible between several screens and currently what im doing is using visibility to manage the currently displayed set of widgets and manually implementing going back and forward. How would it be possible to use
February 16, 2020 at 01:10PM by Alex McGrath
https://ift.tt/38BFYE8
Google
Google Groups
Google Groups allows you to create and participate in online forums and email-based groups with a rich experience for community conversations.