FlutterDev
27.5K subscribers
236 photos
1 video
31K links
Download Telegram
New post on /r/flutterdev subreddit:

They say that the next legends will be born from this crisis. Starting learning Flutter today and create the next unicorn start-up.
https://ift.tt/3e9YLtx

April 09, 2020 at 04:43PM by Gigatronbot
https://ift.tt/2XqRwY3
New post on Flutter Dev Google group:

TestWidgetsFlutterBinding.clock breaking change doc
Please review this proposal for a breaking change to the backing implementation of the Clock returned from `TestWidgetsFlutterBinding.clock`. https://ift.tt/2RqWeBf See also the pending migration guide on the website with code examples https://ift.tt/2UZbjwh

April 09, 2020 at 07:32PM by Jake Macdonald
https://ift.tt/34zu4tr
New post on /r/flutterdev subreddit:

Switching from React Native to Flutter
Sup, I'm a React & React Native developer with a few projects under my belt, and I've been considering giving Flutter a try for my next project and I have a few questions:I found a Udemy course on Flutter (it's like 20 hrs -- that's how I learned React in the first place) and I was wondering whether I need to take something like this since I have experience with RN.Are development patterns/flows similar between RN and Flutter? (I don't want to fall into the trap of trying to do React in Flutter)How much of an overall move is it? I have a set development cycle figured out for RN -- how subject is that to change in Flutter?I'm a UI designer as well, and my apps usually have a unique feel. I know google loves Material design; is that shoved down everyone's throats or does Flutter provide enough customizability for uniqueness?I heard Flutter discourages parallelism. Has anybody encountered roadblocks with this?How's the overall performance of Flutter vs React?Cheers

April 09, 2020 at 07:15PM by NoteToBear
https://ift.tt/3e5jBdz
New post on /r/flutterdev subreddit:

Couldn't fetch PDF from Assets. Help me if their is any Logical error.
class _InformationTechnologyState extends State<InformationTechnology> {
String pdfasset = "assets/IT.pdf";
PDFDocument _doc;
bool _loading = false;
u/override
void initState() { 
super.initState();  }
_initPDF()async{
setState(() {
      _loading = true;
    });
final doc = await PDFDocument.fromAsset(pdfasset);
setState(() {
      _doc = doc;
      _loading = false;
    });
  }
u/override
Widget build(BuildContext context) {
return Scaffold(
      appBar: AppBar(
       title: Text("Introduction to Information Technology"),
       centerTitle: true,
       backgroundColor: Colors.blueAccent,
      ),
      body: _loading?
Center(
       child: CircularProgressIndicator(),
      ):PDFViewer(document: _doc), 
      );
  }
}

April 09, 2020 at 07:50PM by bishalpaudel1998
https://ift.tt/3aZkv9l
New post on /r/flutterdev subreddit:

How to add a "header" to this panel that says 'Friends' with a divider() underneath the text? (Using sliding_up_panel package btw, link in post)
my demo (I shake my cursor where the header should be): https://gph.is/g/Zd7VPWPsliding_up_panel: https://pub.dev/packages/sliding_up_panel#-readme-tab-Basically want the panel to look exactly like the Find My Friends app: https://imgur.com/a/2VHtp0gThe list should scroll underneath the header.Tried making a column and having the first widget be Text('friends'), the next widget Divider(), and the third a ListView.builder(controller: scrollController); get overflow errors. I know the problem has to do with scrollable stuff and the sliding_up_panel.Thanks in advance!

April 09, 2020 at 09:51PM by PoopSlinger777
https://ift.tt/2Rn9Ltt
New post on /r/flutterdev subreddit:

Flutter Local Auth With FirebaseAuth
HiJust wanted to know if anyone out there has impletented local/biometric auth in their flutter app that also needs to authenticate with firebaseI know a couple ways on doing this but they are probably not the bestone way would be to save user and hashed password in secure_storage and pass these through to firebase auth then biometric auth is successfullanother check if currentUser is not null and set the firebase auth token to refresh and then just pass the user through after sucuessfull biometric auth is successfullHow do the banking/other apps acheive this, you basically enable the flag in the app and it next time it manages to log you into the app as the same as loggin in with credentialsI know banking apps will have alot more rescoures to create their own authentication system, that would validate public/private keys for a user/device,Can this be achived using firebase auth using a similar technique?

April 09, 2020 at 10:24PM by mrvtec69
https://ift.tt/2UWZzu4
New post on Flutter Dev Google group:

Generating signed APK option not available.
Hello guys, I have been trying to generate a signed APK. However, the option to generate a signed APK under build is not there and i saw some solutions through project structure from file, project structure option is not there as well. Please help me! Thank you so much guys.!!! PS: when i run

April 10, 2020 at 12:08AM by Mahmoud Alminawi
https://ift.tt/3bYwqo2
New post on /r/flutterdev subreddit:

What would be the best way to apply turn by turn navigation like google maps?
It looks like a lot of people don't like the google maps plugin, so I've looked at mapbox and leaflet. Are there any other options I should consider? Which plugin would you recommend I use?

April 10, 2020 at 01:01AM by node_user910253
https://ift.tt/2Vd5xWC
New post on /r/flutterdev subreddit:

Anyone use WidgetsApp instead of Material or Cupertino?
If I want to make a fully custom app with my own button styles and whatnot, how would I use WidgetsApp, does it provide zero styling for the widgets?Also, semantically, should I use a button component for example rather than a Container with an onTap function, even though I don't want the default styling that comes with a Material or Cupertino button?

April 10, 2020 at 03:11AM by satvikpendem
https://ift.tt/2Xrj4fU
New post on /r/flutterdev subreddit:

<b>State of integration tests automation in Flutter</b>
I'm currently struggling with integration tests automation. The flutter_driver (see <a href="https://flutter.dev/docs/cookbook/testing/integration/introduction">official doc</a>) is great as long as you work locally but things get more complex when running it on CI with real devices (provided by services like App Center, AWS Device Farm, etc.).
For my job, I've gathered all information I could find and wrote a doc, no conclusion, just a description of the state of the art. I thought it would be nice to share in this sub since there are a lot of unanswered posts about this topic (<a href="https://www.reddit.com/r/FlutterDev/comments/cakor8/testing_flutter_for_different_devices/">here</a>, <a href="https://www.reddit.com/r/FlutterDev/comments/dxhxgx/is_there_a_test_lab_option_for_flutter_apps/">here</a> or <a href="https://www.reddit.com/r/FlutterDev/comments/davkxk/firebase_test_lab_flutter_driver/">here</a>). Feedback welcome!----------------------The tricky partThere are some well-established tools for integration test automation:Expresso (Android)XCUITest, Earl grey (iOS)Appium (cross-platform, it’s basically Selenium for mobile).Those tools are native and can access (and control) native components by their keys. Because Flutter has it own native view with everything drawn in it. Those tools are no use for a Flutter app.That’s why the Flutter team came up with a Flutter equivalent: flutter_driver. Problem is: most of the device testing services don’t support this specific tool.AWS Device Farm + SylphThe author of <a href="https://github.com/mmcc007/sylph">Sylph</a> managed to use flutter_driver to run the integration tests on real devices on both iOS and Android.Sylph repo: <a href="https://github.com/mmcc007/sylph">https://github.com/mmcc007/sylph</a>Codemagic CI blog post about Sylph: <a href="https://blog.codemagic.io/flutter-ci-cd-with-codemagic-sylph-aws-device-farm/">https://blog.codemagic.io/flutter-ci-cd-with-codemagic-sylph-aws-device-farm/</a>However, when taking a closer look how it works, it appears that the lib relies on a hack, a comment in the code mentions this StackOverflow question: <a href="https://stackoverflow.com/a/53328272/769006">https://stackoverflow.com/a/53328272/769006</a>The app sent to AWS is actually a dummy Python application. This somehow allows to override the test command, that how we can run the “flutter driver” command.From the author on the library himself:I was able to get flutter driver working on AWS Device Farm by shoe-horning it into an Appium (python) test... kinda like a trojan horse.Source: <a href="https://github.com/flutter/flutter/issues/7087#issuecomment-466634265">https://github.com/flutter/flutter/issues/7087#issuecomment-466634265</a> (1 year ago)Firebase Test LabIt seems like there is the beginning of an official support from the Flutter team with the <a href="https://pub.dev/packages/e2e">e2e</a> package, even it is still suboptimal (Android only, no support for Robo scripts).Open issues:Official support <a href="https://github.com/flutter/flutter/issues/11718">https://github.com/flutter/flutter/issues/11718</a>Robo scripts support: <a href="https://github.com/flutter/flutter/issues/36681">https://github.com/flutter/flutter/issues/36681</a>I also found the discontinued <a href="https://pub.dev/packages/instrumentation_adapter">instrumentation_adapter</a> package but it’s the predecessor of the e2e package mentioned above (there is an obvious similarity when comparing the 2 readme files).SauceLabsThe only working example I found concerning SauceLabs is from the author of Sylph. It is built on TravisCI and use only an Android simulator. It’s more a PoC and it is not very useful since a simulator can be directly accessible from TravisCI where flutter driver can be used.TravisCI config: <a href="https://travis-ci.com/github/mmcc007/test_flutter_saucelabs/jobs/180159349/config">https://travis…
New post on Flutter Dev Google group:

Flutter ListBuilder from json data
Im trying to create a list from json api And i would like the user to be able to select multiple object from list. Can you hel??? I tried to user the state but every time i clicked the setState function its refrech all the screen so my selection is removed.

April 10, 2020 at 04:15AM by Thierno lamine Balde
https://ift.tt/2JTXPeO
New post on /r/flutterdev subreddit:

Dice Game Flutter(8th/90 Days Challenge)
Dice Game App is my 8th App in this 90 Days Challenge. In this app, basically there are 2 dices will be present on the screen and when the user will click them it will generate the random number from 1 to 6.I had learnt about Expanded, Flat Button and how to differentiate between the Stateful and Stateless widget properties with each other. I had also got to know about the Math properties related to dart. I had created a function named to automate the task of generating random numbers and changing the picture.Features need to be implemented further are as follows:Exception Handling.Thinking about changing the overall UI( of Material App) after every iteration.When both the numbers will be the same, there should be a pop message should be generated.Some kind of scoring should be present in this application.If anyone wants to take a look and give some feedback about the app/the code, it would be really nice :). Pls star and fork the main repo, if you will find it interesting, I will create more advanced apps in the future. Thanks, r/FlutterDev for motivating me this journey and helping me to become a better developer.Deployed Version of the Project: linkhttps://github.com/irahulcse/A-Complete-Guide-To-Flutter#008---dice-game-flutter

April 10, 2020 at 05:31AM by flutterboxinc
https://ift.tt/3edrNrZ