New post on /r/flutterdev subreddit:
Flutter SliverAppBar: Snap those headers!
https://ift.tt/2Puwfrh
August 06, 2020 at 06:11PM by lgn03
https://ift.tt/2EYGLFi
Flutter SliverAppBar: Snap those headers!
https://ift.tt/2Puwfrh
August 06, 2020 at 06:11PM by lgn03
https://ift.tt/2EYGLFi
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
How Flutter Will Win the Desktop
https://ift.tt/2PdlERg
August 06, 2020 at 05:54PM by contrix09
https://ift.tt/30DkC81
Medium
How Flutter Will Win The Desktop
Why it could be the one framework to unite all the platforms.
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
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
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:
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
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
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
Twitter
Flutter
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.
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
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
Twitter
Flutter
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.
New tweet from FlutterDev:
When starting your app for the first time in debug mode, iOS 14 asks to allow local network connections. If you don't allow them, important debug functions (such as hot reload) will not work.
Solution: tap OK
Issue here: https://t.co/xoixg3cbfP pic.twitter.com/x7FoNFC785— Flutter (@FlutterDev) August 6, 2020
August 06, 2020 at 08:04PM
http://twitter.com/FlutterDev/status/1291434926970040320
When starting your app for the first time in debug mode, iOS 14 asks to allow local network connections. If you don't allow them, important debug functions (such as hot reload) will not work.
Solution: tap OK
Issue here: https://t.co/xoixg3cbfP pic.twitter.com/x7FoNFC785— Flutter (@FlutterDev) August 6, 2020
August 06, 2020 at 08:04PM
http://twitter.com/FlutterDev/status/1291434926970040320
GitHub
Running debug on iOS 14 shows "would like to find and connect to devices on your local network" popup · Issue #60634 · flutter/flutter
2020-06-30 12:52:54.237973-0700 Runner[580:228465] Metal API Validation Enabled 2020-06-30 12:52:54.382810-0700 Runner[580:228698] flutter: Observatory listening on http://127.0.0.1:50735/u2EjnBszA...
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
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
Twitter
Flutter
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.
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
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
GitHub
Document that debug Flutter apps cannot be manually launched on the device on iOS 14 · Issue #62531 · flutter/flutter
On iOS 14 execution of JIT fails when the debugger is not attached, and debug Flutter apps (including host add-to-app applications) crash on launch when manually launched from the home screen on a ...
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
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
Twitter
Flutter
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.
New tweet from FlutterDev:
We have tracking bugs for work on both iOS 14 and Xcode 12, and you can find them here:
* https://t.co/OcM1LEnoK1
* https://t.co/upIieOCyQk— Flutter (@FlutterDev) August 6, 2020
August 06, 2020 at 08:06PM
http://twitter.com/FlutterDev/status/1291435402067230720
We have tracking bugs for work on both iOS 14 and Xcode 12, and you can find them here:
* https://t.co/OcM1LEnoK1
* https://t.co/upIieOCyQk— Flutter (@FlutterDev) August 6, 2020
August 06, 2020 at 08:06PM
http://twitter.com/FlutterDev/status/1291435402067230720
GitHub
☂️ Support Xcode 12 · Issue #60133 · flutter/flutter
Umbrella issue tracking developing Flutter apps working with Xcode 12. #60025 Fix all "Double-quoted include in framework header, expected angle-bracketed instead" warnings #60035...
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
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
Twitter
Flutter
Thanks for helping us test what's coming!
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
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
reddit
What did you build your portfolio website with? Flutter? Wix? A...
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...
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
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
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:
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 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
Dart packages
in_app_review | Flutter package
Flutter plugin for showing the In-App Review/System Rating pop up on Android, iOS and MacOS. It makes it easy for users to rate your app.
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
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
reddit
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...
New post on /r/flutterdev subreddit:
Interesting discussion on React-like hooks in Flutter for reusable widget life-cycle management
https://ift.tt/3kjAnse
August 06, 2020 at 09:48PM by satvikpendem
https://ift.tt/30zqBdZ
Interesting discussion on React-like hooks in Flutter for reusable widget life-cycle management
https://ift.tt/3kjAnse
August 06, 2020 at 09:48PM by satvikpendem
https://ift.tt/30zqBdZ
GitHub
Reusing state logic is either too verbose or too difficult · Issue #51752 · flutter/flutter
Related to the discussion around hooks #25280 TL;DR: It is difficult to reuse State logic. We either end up with a complex and deeply nested build method or have to copy-paste the logic across mult...
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…
<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
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
reddit
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...
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.
August 07, 2020 at 12:58AM by AIDXN3
https://ift.tt/3gGUyOU
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
reddit
Flutter Firestore with charts_flutter error
A subreddit for Google's portable UI framework.
New tweet from FlutterDev:
✅That verified and fixed feeling!
Join @filiphracek and @Fitzface as they discuss debugging, including the debugger, breakpoints, stack frames, assertions, and more!
Tune into The #BoringShow and find your bug → https://t.co/bwgpAC6D5X pic.twitter.com/gJHFhM1Q7k— Flutter (@FlutterDev) August 6, 2020
August 07, 2020 at 12:45AM
http://twitter.com/FlutterDev/status/1291505625076076544
✅That verified and fixed feeling!
Join @filiphracek and @Fitzface as they discuss debugging, including the debugger, breakpoints, stack frames, assertions, and more!
Tune into The #BoringShow and find your bug → https://t.co/bwgpAC6D5X pic.twitter.com/gJHFhM1Q7k— Flutter (@FlutterDev) August 6, 2020
August 07, 2020 at 12:45AM
http://twitter.com/FlutterDev/status/1291505625076076544
Twitter
Filip Hráček (@filiphracek) | Twitter
The latest Tweets from Filip Hráček (@filiphracek). I explain difficult things to smart people. Separately, I also make games (@RaindeadGames) and useful little software projects (https://t.co/LnvSFrXDLK). San Fransisco Bay Area