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

How Flutter Will Win the Desktop
https://ift.tt/2PdlERg

August 06, 2020 at 05:54PM by contrix09
https://ift.tt/30DkC81
New post on Flutter Dev Google group:

Flutter 1.20.0 device issue
Just downloaded 1.12 and have noticed a problem (tested several times). When I output to my IOS device, the first time, the icon will show up on the screen, but when launching the screen will turn white and stay white, and the app will not launch. If I remove the app and try again (second

August 06, 2020 at 07:05PM by jerry hamby
https://ift.tt/2C5iw7l
New post on /r/flutterdev subreddit:

Loading network images before showing on screen
My app has a list of pages you can swipe between. These pages include network images. The problem is, the network images are fetched and built only when they are visible, meaning the user watches the whole process happen.I understand this is the intentional functionality of flutter for efficiency, but I am looking for a way to fetch, load and cache a page (that contains network images) before the user navigates to it.Current: https://i.stack.imgur.com/F27xH.gifGoal: https://i.stack.imgur.com/YNQcy.gif

August 06, 2020 at 08:16PM by hdmd-rbvbdnd
https://ift.tt/33xPKHG
New post on /r/flutterdev subreddit:

iOS 14, the new version of Apple's mobile operating system, is coming. As it's not yet stable, we don't fully support it yet. But we have some tips to get you up and running — assuming you don't mind being on the leading edge [via FlutterDev on Twitter]
https://twitter.com/FlutterDev/status/1291434769671057410

August 06, 2020 at 08:07PM by EngineerScientist
https://ift.tt/3i7S1gS
New tweet from FlutterDev:

iOS 14, the new version of Apple's mobile operating system, is coming. As it's not yet stable, we don't fully support it yet.

But we have some tips to get you up and running — assuming you don't mind being on the leading edge.— Flutter (@FlutterDev) August 6, 2020

August 06, 2020 at 08:03PM
http://twitter.com/FlutterDev/status/1291434769671057410
New tweet from FlutterDev:

Just to be clear: this only happens in debug mode. Your users will not see this message. Only the debug version of your app needs to access the local network.— Flutter (@FlutterDev) August 6, 2020

August 06, 2020 at 08:04PM
http://twitter.com/FlutterDev/status/1291435011208384513
New tweet from FlutterDev:

When installing a debug version on a physical iOS 14 device (using `flutter run`), then disconnecting, then opening from the home screen, the app crashes.

Solution: Use `flutter run --release` to be able to start the app from the home screen.

Issue here: https://t.co/aEh1pfoQ1A— Flutter (@FlutterDev) August 6, 2020

August 06, 2020 at 08:05PM
http://twitter.com/FlutterDev/status/1291435239961579521
New tweet from FlutterDev:

Once again, the crash only happens in debug mode, and only when you're opening from the home screen on a physical iOS 14 device.— Flutter (@FlutterDev) August 6, 2020

August 06, 2020 at 08:05PM
http://twitter.com/FlutterDev/status/1291435343762227200
New tweet from FlutterDev:

Thanks for helping us test what's coming!— Flutter (@FlutterDev) August 6, 2020

August 06, 2020 at 08:06PM
http://twitter.com/FlutterDev/status/1291435483851972609
New post on /r/flutterdev subreddit:

What did you build your portfolio website with? Flutter? Wix? A pro web dev?
Hey everyone,It's time to build a personal website and I can't decide what to build it with. I'm thinking of the typical website with a big picture, name, and few lines of summary on landing page. Then, projects and contact form after scrolling.Did you guys use Flutter to build your personal website? If not, is it wix? squarespace?Will developers be looked down at if their website is built with wix instead of building it themselves?Thanks yall.

August 06, 2020 at 08:29PM by Theshitcoiner
https://ift.tt/33FJTjs
New post on Flutter Dev Google group:

Run a task in the background whenever internet is switched on
I have a scenario in the app I am developing where I want to send the files I stored in the local storage to my API. This should happen in the background. And this task should be triggered only when the internet is switched on. I found flutter_background_fetch package to run tasks in the

August 06, 2020 at 08:49PM by Harivamshi Diddiga
https://ift.tt/3fHNb8B
New post on /r/flutterdev subreddit:

New plugin: in_app_review. Show the In-App Review/System Rating pop up on Android and IOS
https://pub.dev/packages/in_app_reviewGoogle announced the new In-App Review API yesterday so I made a Flutter plugin for it. It also supports the iOS equivalent.

August 06, 2020 at 09:11PM by britannioj
https://ift.tt/3a2UbeM
New post on /r/flutterdev subreddit:

Does 3 variants of assets increase app size ?
Does 3 variants of assets increase app size ?I'm thinking of this. Wouldn't be better to provide only largest image asset for an app ? 3x ?When I want to show image asset as a background, what are the default sizes of images for 1x, 2x, 3x.
I haven't found this on the web. Documentation talks only about icons...

August 06, 2020 at 10:01PM by k4rolko
https://ift.tt/3ifu4nJ
New post on /r/flutterdev subreddit:

<b>How to create flutter flow widget</b>
I'am trying to create something like flow layout in flutter. I just need to do something like <a href="https://dump.video/i/zPKfW3.mp4">this</a> on FlexibleGridViev but with a stretch animation. So in my case, I build a matrix based on a list of elements and then change the position of the elements, but when I do this for many elements, I can't figure out how to make them not overlap.help me please!!<a href="https://i.stack.imgur.com/hFEKv.png">enter image description here</a>And here is my class<pre>class UserSuggestion extends StatefulWidget { static final String tag = '/user-suggestion'; UserSuggestion({Key key}) : super(key: key); @override _UserSuggestionState createState() => _UserSuggestionState(); } class _UserSuggestionState extends State<UserSuggestion> with TickerProviderStateMixin { double screenHeight; List<Example01Tile> list; List<SuggestionCategory> items = []; Map<int, List<SuggestionCategory>> suggestionMatrix = { 0: [], 1: [], 2: [], 3: [] }; StreamController onTapListener = StreamController(); @override void initState() { // TODO: implement initState super.initState(); final number = 30; items = List.generate( number, (index) => SuggestionCategory( name: index.toString(), width: 100, height: 100, ), ); int rowCount = (items.length / 4).round(); suggestionMatrix = Map.from(suggestionMatrix.map((key, value) { final endIndex = (rowCount * (key + 1)); return MapEntry( key, items .getRange(rowCount * key, endIndex < items.length ? endIndex : items.length) .toList() .asMap() .entries .map((element) { final val = element.value; final i = element.key; return SuggestionCategory( name: i.toString(), width: 100, height: 100, x: (i) * 100.0, y: (key) * 100.0); }).toList()); })); onTapListener.stream.listen((event) { calculeteNewTapsPositions(event); }); } @override Widget build(BuildContext context) { final isDesktop = isDisplayDesktop(context); screenHeight = MediaQuery.of(context).size.height; return Scaffold(body: Center(child: mobile())); } mobile() { return Column( mainAxisAlignment: MainAxisAlignment.center, crossAxisAlignment: CrossAxisAlignment.start, children: [ Text( "Tell me what noo jiu jkwk?", style: Theme.of(context).textTheme.headline2, ).paddingOnly( top: PADDING_TOP_BIG_SUGGESTION, left: PADDING_LR_MEDIUM, right: PADDING_LR_MEDIUM), Flexible( child: grid(), ), ]); } grid() { return SingleChildScrollView( scrollDirection: Axis.horizontal, child: Container( height: 600, width: 800, child: Stack( fit: StackFit.expand, alignment: Alignment.topLeft, children: jjjjjj(), ), )); } List<Widget> jjjjjj() { List<Widget> widgets = []; suggestionMatrix.entries.forEach((columns) { int iColumn = columns.key; List<SuggestionCategory> rowsList = columns.value; rowsList.asMap().entries.forEach((rows) { int iRow = rows.key; SuggestionCategory rowsList = rows.value; rowsList.iColumn = iColumn; rowsList.iRow = iRow; widgets.add(AnimatedPositioned( duration: Duration(milliseconds: 600), curve: Curves.easeInOut, left: rows.value.x, top: rows.value.y, // bottom: bottom, // right: right, height: rows.value.height, width: rows.value.width, child: item(rows.value), )); }); }); return widgets; } void calculeteNewTapsPositions(SuggestionCategory suggestionCategory) { final iRow = suggestionCategory.iRow; final iColumn = suggestionCategory.iColumn; bool needExpand = suggestionCategory.currentWeight > 1; bool isEndExpandIteration = suggestionCategory.currentWeight > 2; List<SuggestionCategory> rowList = suggestionMatrix[iColumn]; //mark for right rows rowList.getRange(iRow + 1, rowList.length).forEach((SuggestionCategory e) { setState(() { if (needExpand) { print("right"); e.x = e.x + 100; } else { print("back"); e.x = e.x - 200; } }); }); //mark for left columns suggestionMatrix.forEach((key, value) { if (key > iColumn) { SuggestionCategory e1 = value.elementAt(iRow); SuggestionCategory e2 = value.elementAt(iRow + 1); SuggestionCategory e3 = value.elementAt(iRow…
New post on /r/flutterdev subreddit:

Navigation Drawer
Can someone give me a link with a good navigation drawer tutorial, teaching the best practices? I've seen some and everyone has a different approach on this subject.

August 06, 2020 at 11:30PM by ioncelciuc
https://ift.tt/3iiUhBM
New post on /r/flutterdev subreddit:

Flutter Firestore with charts_flutter error
I get the error when I try to hook up firestore with charts_flutter, does anyone know what's wrong. I cant find out where I went wrong.I/flutter ( 6709): The following _TypeError was thrown building StreamBuilder<QuerySnapshot>(dirty, state: I/flutter ( 6709): _StreamBuilderBaseState<QuerySnapshot, AsyncSnapshot<QuerySnapshot>>#3c873): I/flutter ( 6709): type 'MappedListIterable<DocumentSnapshot, History>' is not a subtype of type 'List<History>'This is the code ``` import 'package:cloud_firestore/cloud_firestore.dart'; import 'package:flutter/material.dart';import 'package:hive/hive.dart'; import 'package:charts_flutter/flutter.dart' as charts;class MachineGraph extends StatefulWidget { MachineGraph({Key key}) : super(key: key);@override _MachineGraphState createState() => _MachineGraphState(); }class _MachineGraphState extends State<MachineGraph> { List<charts.Series<History, String>> _seriesBarData; List<History> myData;_generateData(myData) { _seriesBarData.add(charts.Series( domainFn: (History history, _) => history.time, measureFn: (History history, _) => double.parse(history.data), data: myData, id: "history", )); }@override Widget build(BuildContext context) { return SafeArea( child: Container( child: Scaffold( body: Column( children: <Widget>[ _buildBody(context), ], ), )), ); }Widget _buildBody(BuildContext context) { var box = Hive.box('myBox'); return StreamBuilder<QuerySnapshot>( stream: Firestore.instance.collection(box.get('companyId')).snapshots(), builder: (context, snapshot) { assert(snapshot != null); if (!snapshot.hasData) { return LinearProgressIndicator(); } else { List<History> history = snapshot.data.documents .map((e) => History.fromMap(e.data['history'])); return _buildChart(context, history); } }, ); }Widget _buildChart(BuildContext context, List<History> history) { _generateData(history); return Container( child: Column( children: <Widget>[Expanded(child: charts.LineChart(_seriesBarData))], ), ); } }class History { final String data; final String time;History(this.data, this.time);History.fromMap(Map<String, dynamic> map) : data = map['data'], time = map['time'];@override String toString() { // TODO: implement toString return data.toString(); } } ```

August 07, 2020 at 12:58AM by AIDXN3
https://ift.tt/3gGUyOU