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

i need to change url from notification and show in InAppWebView
Hello everyone, i am call the method in initState and this is work if open app without notification ( open google website ) and in onResume work ( open twitter website ) , but in onLaunch not working can any one help me or any idea ?class content_page extends StatefulWidget {
dynamic url;content_page(this.url);u/override
_content_pageState createState() => _content_pageState();
}class _content_pageState extends State<content_page> {
//https://dev.azkarna.com/webview.html
final FirebaseMessaging _firebaseMessaging = FirebaseMessaging();
InAppWebViewController controller;
double progress = 0;
bool t = false;u/override
void initState() {
super.initState();
if (Platform.isAndroid) {
AndroidNotification();
}
}u/override
Widget build(BuildContext context) {
return SafeArea(
child: Scaffold(
body: setContent(widget.url),
),
);
}// ignore: missing_return
Widget setContent(String url) {
if (Platform.isAndroid) {
print('third url is : $url');
return Container(
child: Stack(
children: <Widget>[
WillPopScope(
onWillPop: _onBack,
child: SafeArea(
child: InAppWebView(
initialUrl: url,
onWebViewCreated:
(InAppWebViewController webViewController) {
controller = webViewController;
},
onLoadStart:
(InAppWebViewController controller, String url) {},
onProgressChanged:
(InAppWebViewController controller, int progress) {
setState(() {
this.progress = progress / 100;
});
},
),
),
),
Align(alignment: Alignment.center, child: _buildProgressBar()),
],
),
);
}
}this is callback for notification :void AndroidNotification() {print('first flag : $t');
_firebaseMessaging.configure(
onResume: (message) async {
setState(() {
widget.url = 'www.twitter.com';
controller.loadUrl(url: widget.url);
t = true;
});
},
onLaunch: (message) async {
setState(() {
widget.url = 'www.facebook.com';
controller.loadUrl(url: widget.url);
t = true;
});}, // min 13 in video https://www.youtube.com/watch?v=xeY-c2nM3lQ
);
if (t == true) {
return;
} else if (t == false) {
widget.url = 'www.google.com';
}
}

November 24, 2020 at 06:20PM by muhammadAlshelleh
https://ift.tt/3l2jX71
New tweet from FlutterDev:

๐Ÿ‘ We want YOUR feedback!

Fill out this user survey so we can learn how to improve Flutter, and make it an even better tool for you.

๐Ÿ–Š๏ธ Take the survey here &rarr; https://t.co/xDLqQiINnB pic.twitter.com/29Yip3lC4Vโ€” Flutter (@FlutterDev) November 24, 2020

November 24, 2020 at 07:04PM
http://twitter.com/FlutterDev/status/1331297616706068484
New post on /r/flutterdev subreddit:

Flutter Buddies discord server is launching new community features: Flutter Talks and Mass Monthly Meetups
You may or may not have heard of us, we launched Flutter Buddies from this sub just over a month ago. Flutter Buddies is a community on discord that has a focus on being actively engaged in the community by getting together in small groups via live audio chats weekly to showcase our projects, learn flutter together, get to know other Flutter devs, coding together, work on group projects, helping each other find jobs, and much more.I have seen this group of developers grow to almost 700 and there's definitely an active group of people here devoted to the community that I would call friends.Anyways, about our new community features:"Flutter Talks", a regularly scheduled one to many or few to many edutainment event with a short presentation being given by one or few fellow Flutter Buddies right on our discord server. You can learn from our speakers about a variety of flutter topics and even ask questions. Topics like UI practice, developing in various platforms, state management, architecture, IDE tricks, widgets, packages and more!"Mass Monthly Meetups" join a large organized group meetup on the last Friday of every month at 18:00 UTC right here on the server.Our discord invite is forwarded from our vanity url http://flutterbuddies.com

November 24, 2020 at 08:35PM by joeyda3rd
https://ift.tt/3l2DSTl
New post on /r/flutterdev subreddit:

Custom Timer โŒ›
Hi guys! I recently publish custom_timer package โŒ› It helps to easily build a highly customizable timer builderโšก๏ธ Main features:Timer controller (start, pause and reset).Custom duration, interval and actions.Any feedback would be great! ๐ŸคฉPub: https://pub.dev/packages/custom_timerGitHub: https://github.com/federicodesia/custom_timer

November 24, 2020 at 09:02PM by federicodesia
https://ift.tt/3nTxsYp
New post on /r/flutterdev subreddit:

Code Fields ๐Ÿ”ข
Hi guys! I recently publish code_fields package ๐Ÿ”ข It helps to easily build code fields with customization options. It can be useful for OTP and other verification methods.โšก๏ธ Main features:Automatically focuses the next field on typing, and focuses the previous field on deletation.Default cursor support.Form validation and default error message.Any feedback would be great! ๐ŸคฉPub: https://pub.dev/packages/code_fieldsGitHub: https://github.com/federicodesia/code_fields

November 24, 2020 at 08:58PM by federicodesia
https://ift.tt/2HxMq6V
New post on /r/flutterdev subreddit:

How do you implement dynamic SVGs in your Apps? Rive, Lottie, flutter_svg?
I'm looking to implement a fairly complex set of svg interactions / animations, and searching around Rive seems to be the most popular option.However after trying to look at their documentation I can say that it get's the prize for the worse docs I've ever seen.Looks like they changed from flare to rive but I can't even find where to use the old flare editor.What option do you recommend?

November 24, 2020 at 08:56PM by GelDeAveia
https://ift.tt/2KEnDPJ
New tweet from FlutterDev:

๐Ÿ‘๐Ÿ‘
๐Ÿ‘ Give these #AdoptaWidget champions a big round of applause for improving documentation.

๐Ÿ† @obitodarky
๐Ÿ† @ChinuKabi
๐Ÿ† @Sameeerkashyap
๐Ÿ† @tsvillain
๐Ÿ† @abdullahzakir99

See each contribution below &darr;โ€” Flutter (@FlutterDev) November 24, 2020

November 24, 2020 at 10:34PM
http://twitter.com/FlutterDev/status/1331350520309563393
New post on Flutter Dev Google group:

Need info from child to parent
Hello Folks, I have an app which has first screen with two tabs . Two screen has for different forms but the save button is on first screen. I want to send data from forms to firebase when save button is clicked on the first screen. This seems to be very complicated for newbie like me. First

November 24, 2020 at 10:24PM by sarfaraz ahmed
https://ift.tt/3l5UuJE
New post on /r/flutterdev subreddit:

Disabling a button in flutter is gross!
Does anyone else find it gross that to disable a button in flutter you have pass null to the onPressed parameter.The whole flutter framework is all about extensive use of strong types with enums (eg mainAxisAlignment param takes a MainAxisAlignment enum type), and for some reason they think it was acceptable to have a the core behaviour of disabling a button, facilitated by the inexplicit and obscure way of pass null?Why would they not just have a simple parameter called "enabled" that takes a bool??Not to mention dart is getting all on its high horse about not null by default, which idealogically stems from the problems inherent with using null extensively.......and then here is the flutter team just passing null function to disable a button!

November 24, 2020 at 10:22PM by scorr204
https://ift.tt/3m6wFCT
New post on /r/flutterdev subreddit:

How do you deal with being overwhelmed while learning advanced topics?
I just wanted to hear others opinions (or advice) on how to overcome "the wall". Just when I thought I finally "understood" Flutter and started feeling good and confident, I started to follow and learn some more advanced topics ("real world" scenarios one might say) and I came to Reso Coder's DDD course...I feel like I was hit by a train, I managed to get to half of the course until I finally admitted I was completely lost and gave up. What started looking like a fun "real world" firebase app turned in to a nightmare. Unions, Either, Failures, Freezed, Facades, Injectable, Linting, Custom Transitions, etc. So many packages and techniques which honestly left me baffled and even more confused than before, I found myself just copy pasting what Reso was doing without understanding what he was doing (and more importantly why).I am now questionig what I even know and have no idea where to go from now.Please share your stories or advice, anything that can help :)

November 24, 2020 at 11:57PM by ConnectSet57
https://ift.tt/3pX94H6
New post on Flutter Dev Google group:

My For loop to update my firebase cloud database only updates once
i am trying to go through a list of document IDs to update the value each time by minus one, the problem is the loop runs twice but it performs the same values twice, for example, if it finds the value 5 in the cloud database and has to remove 1 from that five and remain wth four, on the second

November 25, 2020 at 01:36AM by Macphail Magwira
https://ift.tt/2Kv2cAq
New post on /r/flutterdev subreddit:

Sketch to Flutter?
Hey guys, did u have ever think about Sketch to Flutter? I feel it cool. But I have never find like that try. I cant find any github repo regarding this. Why haven't there been such efforts? I just only found PoC like this https://medium.com/icnh/creating-a-flutter-app-from-sketch-89ceec716ca2

November 25, 2020 at 01:59AM by devshin
https://ift.tt/3fuyBCN