New post on /r/flutterdev subreddit:
TouchableOpacity for those coming from React Native
One subtle way of handling touchable items that aren't buttons was TouchableOpacity in React Native.Flutter doesn't seem to have anything similar built in. This is what I've been using. If you're not using hooks, you can do the same with setState``` import 'package:flutter/material.dart'; import 'package:flutter_hooks/flutter_hooks.dart';class TouchableOpacity extends HookWidget { final Widget child; final Function onTap; TouchableOpacity({this.child, this.onTap}) : super(); @override Widget build(BuildContext context) { final isPressed = useState<bool>(false); return GestureDetector( onTapDown: () { isPressed.value = true; }, onTapUp: () { isPressed.value = false; }, onTapCancel: () { isPressed.value = false; }, onTap: onTap, child: AnimatedOpacity( opacity: isPressed.value ? 0.3 : 1, duration: Duration(milliseconds: 75), curve: Curves.easeIn, child: child, ), ); } } ```
May 19, 2019 at 11:37PM by puglife420blazeit
http://bit.ly/2JQniqQ
TouchableOpacity for those coming from React Native
One subtle way of handling touchable items that aren't buttons was TouchableOpacity in React Native.Flutter doesn't seem to have anything similar built in. This is what I've been using. If you're not using hooks, you can do the same with setState``` import 'package:flutter/material.dart'; import 'package:flutter_hooks/flutter_hooks.dart';class TouchableOpacity extends HookWidget { final Widget child; final Function onTap; TouchableOpacity({this.child, this.onTap}) : super(); @override Widget build(BuildContext context) { final isPressed = useState<bool>(false); return GestureDetector( onTapDown: () { isPressed.value = true; }, onTapUp: () { isPressed.value = false; }, onTapCancel: () { isPressed.value = false; }, onTap: onTap, child: AnimatedOpacity( opacity: isPressed.value ? 0.3 : 1, duration: Duration(milliseconds: 75), curve: Curves.easeIn, child: child, ), ); } } ```
May 19, 2019 at 11:37PM by puglife420blazeit
http://bit.ly/2JQniqQ
reddit
r/FlutterDev - TouchableOpacity for those coming from React Native
0 votes and 0 comments so far on Reddit
New post on /r/flutterdev subreddit:
Custom In-app notification
Hi All,I am wondering how it would be possible to trigger a custom notification that pops in from the side of the screen, waits for a certain amount of time before disappearing again.I have created a notification widget that indeed does do a one-shot slide in (all hardcoded messages) but I am struggling to understand how I would go about 'triggering' this notification from a service (I'm using BLoC pattern).Any help would be greatly appreciated, thanks!
May 20, 2019 at 12:25AM by Gamzie1
http://bit.ly/2W5UMrN
Custom In-app notification
Hi All,I am wondering how it would be possible to trigger a custom notification that pops in from the side of the screen, waits for a certain amount of time before disappearing again.I have created a notification widget that indeed does do a one-shot slide in (all hardcoded messages) but I am struggling to understand how I would go about 'triggering' this notification from a service (I'm using BLoC pattern).Any help would be greatly appreciated, thanks!
May 20, 2019 at 12:25AM by Gamzie1
http://bit.ly/2W5UMrN
reddit
r/FlutterDev - Custom In-app notification
0 votes and 0 comments so far on Reddit
New post on /r/flutterdev subreddit:
App with lots of text.
I’m thinking of building an app with lots of text, but I’m afraid it will get boring to read (which is essential for the app to work).Does anyone have any examples of apps that have lots of text, but makes it “fun” to read?Cheers
May 20, 2019 at 03:35AM by Waentastic
http://bit.ly/2JtfHil
App with lots of text.
I’m thinking of building an app with lots of text, but I’m afraid it will get boring to read (which is essential for the app to work).Does anyone have any examples of apps that have lots of text, but makes it “fun” to read?Cheers
May 20, 2019 at 03:35AM by Waentastic
http://bit.ly/2JtfHil
reddit
r/FlutterDev - App with lots of text.
0 votes and 2 comments so far on Reddit
New post on /r/flutterdev subreddit:
A Guide to using Futures in Flutter
http://bit.ly/2VwJJU4
May 20, 2019 at 05:11AM by Filledstacks
http://bit.ly/30wBRWr
A Guide to using Futures in Flutter
http://bit.ly/2VwJJU4
May 20, 2019 at 05:11AM by Filledstacks
http://bit.ly/30wBRWr
Filledstacks
Futures in Flutter for Beginners
A tutorial that covers the basics around creating and Handling Futures in Flutter.
New post on /r/flutterdev subreddit:
Flutter Image Processing
Any tutorials on this? I’m specifically trying to learn how to edit the RGB values of an image, pixel by pixel. I know it’s possible in iOS with something similar to image core and making custom color filters but idk if it exists in flutter yet. Thanks
May 20, 2019 at 06:18AM by codininja1337
http://bit.ly/2HrQCC4
Flutter Image Processing
Any tutorials on this? I’m specifically trying to learn how to edit the RGB values of an image, pixel by pixel. I know it’s possible in iOS with something similar to image core and making custom color filters but idk if it exists in flutter yet. Thanks
May 20, 2019 at 06:18AM by codininja1337
http://bit.ly/2HrQCC4
reddit
r/FlutterDev - Flutter Image Processing
0 votes and 0 comments so far on Reddit
New post on Flutter Dev Google group:
Support in-app updates
During the Developer Keynote of Google I/O 2019, one of the exciting new features is Support for in-app Updates for Android Apps. By any chance is it available for Flutter as well? Or will there be any future announcements regarding this form the Flutter Team? ------------------------------
May 20, 2019 at 10:04AM by Anirudh Jwala
http://bit.ly/2JsvNc9
Support in-app updates
During the Developer Keynote of Google I/O 2019, one of the exciting new features is Support for in-app Updates for Android Apps. By any chance is it available for Flutter as well? Or will there be any future announcements regarding this form the Flutter Team? ------------------------------
May 20, 2019 at 10:04AM by Anirudh Jwala
http://bit.ly/2JsvNc9
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:
'Future' is not a subtype of type 'bool'
Hi Friends, when i was try to take response from url and also need to return bool value baled on that response statusCode. But i was strucked with this error. 'Future' is not a subtype of type 'bool' If i remove async the not able to get response, Can any one
May 20, 2019 at 12:45PM by Rajkumar Garikapati
http://bit.ly/2WZs1u4
'Future' is not a subtype of type 'bool'
Hi Friends, when i was try to take response from url and also need to return bool value baled on that response statusCode. But i was strucked with this error. 'Future' is not a subtype of type 'bool' If i remove async the not able to get response, Can any one
May 20, 2019 at 12:45PM by Rajkumar Garikapati
http://bit.ly/2WZs1u4
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 /r/flutterdev subreddit:
Building a Visual Scripter with widgets in Flutter - Advice Wanted
Hi devs,This is Dane from FilledStacks, Seeing that there's some good devs on here I'd like to reach out for some advice. I'm undertaking a new part of one of my products that will help in faster development of mobile apps. I need to create a structure similar to the unreal blueprint functionality. If you haven't used that then think of placing nodes on a canvas and connecting certain points to other nodes. There are two ways that I know how to create this in Flutter at the moment.Do this manually (the long way) by drawing everything using a custom painter on a canvas and wrapping my painters to create my own library of "widgets" to re-use all over my canvas, but I'm hoping there's a less time consuming way and I'm just missing it from the docs.Use a fixed grid system of blocks with the DraggableWidgets as the base of all items. I don't want to do this even though it'll be faster. Some things I can see as a problem is zooming out (visually) for larger node trees, selecting multiple widgets using a drag select option.Ideally I would like these items to be actual UI widgets, and not custom painted using the painter only. The Nodes I'd like to be widgets as well as the text but the connecting lines I'll draw using the painter. I would ideally like to build this in Flutter because I want a Desktop version as well as a web version of the app. I'm currently in VueJs with the MVP and would like to take it to a production level so Flutter would be my first choice since I'm building all my mobile apps in it now. I'll build it for the iPad as well so it's a win-win-win on my side if I can get something like this in Flutter.Please let me know what you think I'd be very appreciative of all feedback. Maybe it's too early to build something like this but I'll start with iPAD only and then when web and desktop is ready I should be able to port it "easily".
May 20, 2019 at 03:14PM by Filledstacks
http://bit.ly/2QcpVnP
Building a Visual Scripter with widgets in Flutter - Advice Wanted
Hi devs,This is Dane from FilledStacks, Seeing that there's some good devs on here I'd like to reach out for some advice. I'm undertaking a new part of one of my products that will help in faster development of mobile apps. I need to create a structure similar to the unreal blueprint functionality. If you haven't used that then think of placing nodes on a canvas and connecting certain points to other nodes. There are two ways that I know how to create this in Flutter at the moment.Do this manually (the long way) by drawing everything using a custom painter on a canvas and wrapping my painters to create my own library of "widgets" to re-use all over my canvas, but I'm hoping there's a less time consuming way and I'm just missing it from the docs.Use a fixed grid system of blocks with the DraggableWidgets as the base of all items. I don't want to do this even though it'll be faster. Some things I can see as a problem is zooming out (visually) for larger node trees, selecting multiple widgets using a drag select option.Ideally I would like these items to be actual UI widgets, and not custom painted using the painter only. The Nodes I'd like to be widgets as well as the text but the connecting lines I'll draw using the painter. I would ideally like to build this in Flutter because I want a Desktop version as well as a web version of the app. I'm currently in VueJs with the MVP and would like to take it to a production level so Flutter would be my first choice since I'm building all my mobile apps in it now. I'll build it for the iPad as well so it's a win-win-win on my side if I can get something like this in Flutter.Please let me know what you think I'd be very appreciative of all feedback. Maybe it's too early to build something like this but I'll start with iPAD only and then when web and desktop is ready I should be able to port it "easily".
May 20, 2019 at 03:14PM by Filledstacks
http://bit.ly/2QcpVnP
Unrealengine
Blueprints Visual Scripting
Overview of using the Blueprint visual scripting system for gameplay.
New post on Flutter Dev Google group:
Flutter current location error
I am using flutter map and geolocator package to get current location and display in map but I am getting error as below The getter 'latitude' was called on null. Receiver: null Tried calling: latitude I have gone through this issue but haven't helped http://bit.ly/2LWAugx
May 20, 2019 at 05:31PM by mahantappa b k
http://bit.ly/2WhZh2n
Flutter current location error
I am using flutter map and geolocator package to get current location and display in map but I am getting error as below The getter 'latitude' was called on null. Receiver: null Tried calling: latitude I have gone through this issue but haven't helped http://bit.ly/2LWAugx
May 20, 2019 at 05:31PM by mahantappa b k
http://bit.ly/2WhZh2n
New post on /r/flutterdev subreddit:
[Discussion] Programmatically navigate with Navigator.pushNamed(), how?
All the tutorial available for navigation is wrapped within Button's action. But how can I programmatically navigate with Navigator.pushNamed()?
May 20, 2019 at 05:04PM by piscessky15
http://bit.ly/2VD1DV0
[Discussion] Programmatically navigate with Navigator.pushNamed(), how?
All the tutorial available for navigation is wrapped within Button's action. But how can I programmatically navigate with Navigator.pushNamed()?
class _AppState extends State<App> { @override Widget build(BuildContext context) { switch (state) { case 'error': Navigator.pushNamed(context, "/loading"); break; default: Navigator.pushNamed(context, "/home"); break; } return _loadingWidget(); } Widget _loadingWidget() { return Scaffold( body: Container( alignment: Alignment.center, child: CircularProgressIndicator(), ), ); } }Tested with the code above but failed, but workable if wrapped inside button's action
May 20, 2019 at 05:04PM by piscessky15
http://bit.ly/2VD1DV0
reddit
r/FlutterDev - [Discussion] Programmatically navigate with Navigator.pushNamed(), how?
0 votes and 1 comment so far on Reddit
New post on /r/flutterdev subreddit:
A new way for handling internationalization in Flutter
Just write a dart plugin - gen_lang and share to Flutter community.gen_lang is a dart library for internationalization. Extracts messages to generate dart files required by Intl.Now, three steps for internationalization(1) Preparing Json files > (2) Run gen_lang > (3) Use itEnjoy it.
May 20, 2019 at 06:17PM by ycy101
http://bit.ly/2VN3sUm
A new way for handling internationalization in Flutter
Just write a dart plugin - gen_lang and share to Flutter community.gen_lang is a dart library for internationalization. Extracts messages to generate dart files required by Intl.Now, three steps for internationalization(1) Preparing Json files > (2) Run gen_lang > (3) Use itEnjoy it.
May 20, 2019 at 06:17PM by ycy101
http://bit.ly/2VN3sUm
Dart packages
gen_lang | Dart Package
gen_lang is a dart library for internationalization. Extracts messages to generate dart files required by Intl
New post on /r/flutterdev subreddit:
Ian Hickson & Chris Sells | It's All Widgets! Flutter Podcast
http://bit.ly/2Wi9fkh
May 20, 2019 at 07:52PM by hillel369
http://bit.ly/2LY3PXV
Ian Hickson & Chris Sells | It's All Widgets! Flutter Podcast
http://bit.ly/2Wi9fkh
May 20, 2019 at 07:52PM by hillel369
http://bit.ly/2LY3PXV
It's All Widgets!
Ian Hickson & Chris Sells | It's All Widgets!
Ian "Hixie" Hickson is the author and maintainer of the Acid2 and Acid3 tests, the WHATWG HTML 5 specification, and the Pingback specification, and the early working draft of Web Applications 1.0. He is known as a proponent of Web standards, and has played…
New post on /r/flutterdev subreddit:
I published my first (open source) app on Google Play
http://bit.ly/2Wf8Hvs
May 20, 2019 at 07:18PM by veetaw_
http://bit.ly/2VC1DVp
I published my first (open source) app on Google Play
http://bit.ly/2Wf8Hvs
May 20, 2019 at 07:18PM by veetaw_
http://bit.ly/2VC1DVp
New tweet from FlutterDev:
At #io19, @DomesticMouse and @redbrogdon's dedicated their talk to building for iOS with Flutter 📲
Check it out to learn how to build interfaces iOS users will love with Flutter's Cupertino package!
Watch here → https://t.co/4RsYtTVvvX pic.twitter.com/F6ehwodSgr— Flutter (@FlutterDev) May 20, 2019
May 20, 2019 at 08:29PM
http://twitter.com/FlutterDev/status/1130540947312451584
At #io19, @DomesticMouse and @redbrogdon's dedicated their talk to building for iOS with Flutter 📲
Check it out to learn how to build interfaces iOS users will love with Flutter's Cupertino package!
Watch here → https://t.co/4RsYtTVvvX pic.twitter.com/F6ehwodSgr— Flutter (@FlutterDev) May 20, 2019
May 20, 2019 at 08:29PM
http://twitter.com/FlutterDev/status/1130540947312451584
Twitter
#io19 hashtag on Twitter
On Jul 4 @GCPcloud tweeted: "Check out our pick of the top 5 GCP sess.." - read what others are saying and join the conversation.
New tweet from FlutterDev:
Dart = Flutter’s secret sauce = careful blend of runtimes, compilers, libraries, and language features 🍵@kevmoo and @munificentbob show how Dart helps developers build fast, high-fidelity applications that run across multiple platforms.
Watch here → https://t.co/QNOiITy3EG pic.twitter.com/WZxO7lj6Ej— Flutter (@FlutterDev) May 20, 2019
May 20, 2019 at 09:22PM
http://twitter.com/FlutterDev/status/1130554285274615816
Dart = Flutter’s secret sauce = careful blend of runtimes, compilers, libraries, and language features 🍵@kevmoo and @munificentbob show how Dart helps developers build fast, high-fidelity applications that run across multiple platforms.
Watch here → https://t.co/QNOiITy3EG pic.twitter.com/WZxO7lj6Ej— Flutter (@FlutterDev) May 20, 2019
May 20, 2019 at 09:22PM
http://twitter.com/FlutterDev/status/1130554285274615816
Twitter
Kevin Moore @ 🏠 (@kevmoo) | Twitter
The latest Tweets from Kevin Moore @ 🏠 (@kevmoo). @google Product Manager for @dart_lang 🎯 and @FlutterDev 💙. Lucky husband 👩❤️👨, proud dad of three 👨👧👦👶, under-caffeinated ☕. Seattle, WA
New post on /r/flutterdev subreddit:
Why do we invoke "addPostFrameCallback" on WidgetsBinding and not SchedulerBinding?
The SchedulerBinding actually mixes in the "addPostFrameCallback" method to the concrete WidgetsFlutterBinding (i.e., the concrete class that aggregates all the bindings together for a widgets-based Flutter app).Based on my reading of the code, the singleton instance of each binding (i.e., XyzBinding.instance) references the concrete instance of the WidgetsFlutterBinding (which is safe, since this class mixes in all the bindings and therefore inherits all the stuff the bindings implement).This implies that SchedulerBinding.instance and WidgetsBinding.instance point to this same instance; they're just two names for the same thing. That said, since addPostFrameCallback comes from SchedulerBinding, wouldn't it be cleaner to reference it via that name and not WidgetsBinding?
May 20, 2019 at 10:24PM by t3mp3st
http://bit.ly/2WTSJE7
Why do we invoke "addPostFrameCallback" on WidgetsBinding and not SchedulerBinding?
The SchedulerBinding actually mixes in the "addPostFrameCallback" method to the concrete WidgetsFlutterBinding (i.e., the concrete class that aggregates all the bindings together for a widgets-based Flutter app).Based on my reading of the code, the singleton instance of each binding (i.e., XyzBinding.instance) references the concrete instance of the WidgetsFlutterBinding (which is safe, since this class mixes in all the bindings and therefore inherits all the stuff the bindings implement).This implies that SchedulerBinding.instance and WidgetsBinding.instance point to this same instance; they're just two names for the same thing. That said, since addPostFrameCallback comes from SchedulerBinding, wouldn't it be cleaner to reference it via that name and not WidgetsBinding?
May 20, 2019 at 10:24PM by t3mp3st
http://bit.ly/2WTSJE7
reddit
r/FlutterDev - Why do we invoke "addPostFrameCallback" on WidgetsBinding and not SchedulerBinding?
0 votes and 0 comments so far on Reddit
New post on Flutter Dev Google group:
A simple example of speech to text with flutter.
This features the BMI app from the programming with Paulo series modified to use speech to text as input. http://bit.ly/2JuEank
May 20, 2019 at 10:52PM by Myron Rogers
http://bit.ly/2JUxpKX
A simple example of speech to text with flutter.
This features the BMI app from the programming with Paulo series modified to use speech to text as input. http://bit.ly/2JuEank
May 20, 2019 at 10:52PM by Myron Rogers
http://bit.ly/2JUxpKX
GitHub
GitHub - myronrogersrogersgmailcom/bmiapp
Contribute to myronrogersrogersgmailcom/bmiapp development by creating an account on GitHub.
New post on /r/flutterdev subreddit:
Synchronising widget animations with the scroll of a PageView in Flutter
http://bit.ly/2WemJh6
May 20, 2019 at 10:56PM by Purple_Pizzazz
http://bit.ly/2LVijrr
Synchronising widget animations with the scroll of a PageView in Flutter
http://bit.ly/2WemJh6
May 20, 2019 at 10:56PM by Purple_Pizzazz
http://bit.ly/2LVijrr
Medium
Synchronising widget animations with the scroll of a PageView in Flutter
Animate a widget while scrolling back and forward in a PageView
New post on /r/flutterdev subreddit:
Driving your UI from a persistent model
http://bit.ly/2waXw8A
May 20, 2019 at 11:54PM by cbc_apps_team
http://bit.ly/2QgmvAr
Driving your UI from a persistent model
http://bit.ly/2waXw8A
May 20, 2019 at 11:54PM by cbc_apps_team
http://bit.ly/2QgmvAr
Medium
Driving your UI from a persistent model
One thing I’ve really liked about Android development (yes, this is an article about Flutter) in the past few years is how Google has been…
New post on Flutter Dev Google group:
Flutter Table
Hello Everyone! I searched everywhere. But not getting a good resource for creating a dynamic point table which will be something like this screen. Anyone can refer me a good source please. That will help me a lot. Thanks in advance.
May 21, 2019 at 12:24AM by anirban jahan
http://bit.ly/2HzUVKs
Flutter Table
Hello Everyone! I searched everywhere. But not getting a good resource for creating a dynamic point table which will be something like this screen. Anyone can refer me a good source please. That will help me a lot. Thanks in advance.
May 21, 2019 at 12:24AM by anirban jahan
http://bit.ly/2HzUVKs
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 /r/flutterdev subreddit:
Flutter Tidbits from 1Block - AnimatedSize, palette_generator, Exponential Slider, Onboarding with Overlay
http://bit.ly/2VRdWlz
May 21, 2019 at 12:37AM by l_u_c_a_s
http://bit.ly/2HEuIdY
Flutter Tidbits from 1Block - AnimatedSize, palette_generator, Exponential Slider, Onboarding with Overlay
http://bit.ly/2VRdWlz
May 21, 2019 at 12:37AM by l_u_c_a_s
http://bit.ly/2HEuIdY
Lucasappco
Flutter Tidbits from 1Block | LucasAppCo
LucasAppCo, making pretty good apps since 2018