New post on /r/flutterdev subreddit:
<b>Drawer problem</b>
How do I add my CustomDrawer to my hometab screen? I want to press the icon and open my CustomDrawer.​CustomDrawer​<code>import 'package:asapp/models/user_model.dart';</code>
<code>import 'package:asapp/screens/login_screen.dart';</code>
<code>import 'package:asapp/tiles/drawer_tile.dart';</code>
<code>import 'package:flutter/material.dart';</code>
<code>import 'package:scoped_model/scoped_model.dart';</code>
<code>class CustomDrawer extends StatelessWidget {</code>
<code>final PageController pageController;</code>
<code>CustomDrawer(this.pageController);</code>
<code>u/override</code>
<code>Widget build(BuildContext context) {</code>
<code>Widget _buildDrawerBack() => Container(</code>
<code>decoration: BoxDecoration(</code>
<code>gradient: LinearGradient(colors: [</code>
<code>Colors.yellow,</code>
<code>Colors.orange,</code>
<code>Colors.red,</code>
<code>], begin: Alignment.topLeft, end: Alignment.bottomRight)),</code>
<code>);</code>
<code>return Drawer(</code>
<code>child: Stack(</code>
<code>children: <Widget>[</code>
<code>_buildDrawerBack(),</code>
<code>ListView(</code>
<code>padding: EdgeInsets.only(left: 32.0),</code>
<code>children: <Widget>[</code>
<code>Container(</code>
<code>margin: EdgeInsets.only(bottom: 8.0),</code>
<code>padding: EdgeInsets.fromLTRB(0.0, 16.0, 16.0, 8.0),</code>
<code>height: 170.0,</code>
<code>child: Stack(</code>
<code>children: <Widget>[</code>
<code>Positioned(</code>
<code>top: 8.0,</code>
<code>left: 0.0,</code>
<code>child: Text(</code>
<code>"Lista De Presentes",</code>
<code>style: TextStyle(</code>
<code>fontSize: 30.0,</code>
<code>fontWeight: FontWeight.bold,</code>
<code>color: Colors.deepPurple,</code>
<code>),</code>
<code>),</code>
<code>),</code>
<code>Positioned(</code>
<code>left: 0.0,</code>
<code>bottom: 0.0,</code>
<code>child: ScopedModelDescendant<UserModel>(</code>
<code>builder: (context, child, model) {</code>
<code>return Column(</code>
<code>crossAxisAlignment: CrossAxisAlignment.start,</code>
<code>children: <Widget>[</code>
<code>Text("Olá, ${!model.isLoggedIn() ? "" : model.userData["name"]}",</code>
<code>style: TextStyle(</code>
<code>fontSize: 15.0,</code>
<code>fontWeight: FontWeight.bold,</code>
<code>color: Colors.deepPurple,</code>
<code>),</code>
<code>),</code>
<code>GestureDetector(</code>
<code>child: Text(</code>
<code>!model.isLoggedIn() ?</code>
<code>"Entre ou cadastre-se"</code>
<code>: "Sair",</code>
<code>style: TextStyle(</code>
<code>color: Colors.deepPurple,</code>
<code>fontSize: 15.0,</code>
<code>fontWeight: FontWeight.bold,</code>
<code>),</code>
<code>),</code>
<code>onTap: () {</code>
<code>if(!model.isLoggedIn())</code>
<code>Navigator.of(context).push(</code>
<code>MaterialPageRoute(</code>
<code>builder: (context) => LoginScreen()),</code>
<code>);</code>
<code>else</code>
…
<b>Drawer problem</b>
How do I add my CustomDrawer to my hometab screen? I want to press the icon and open my CustomDrawer.​CustomDrawer​<code>import 'package:asapp/models/user_model.dart';</code>
<code>import 'package:asapp/screens/login_screen.dart';</code>
<code>import 'package:asapp/tiles/drawer_tile.dart';</code>
<code>import 'package:flutter/material.dart';</code>
<code>import 'package:scoped_model/scoped_model.dart';</code>
<code>class CustomDrawer extends StatelessWidget {</code>
<code>final PageController pageController;</code>
<code>CustomDrawer(this.pageController);</code>
<code>u/override</code>
<code>Widget build(BuildContext context) {</code>
<code>Widget _buildDrawerBack() => Container(</code>
<code>decoration: BoxDecoration(</code>
<code>gradient: LinearGradient(colors: [</code>
<code>Colors.yellow,</code>
<code>Colors.orange,</code>
<code>Colors.red,</code>
<code>], begin: Alignment.topLeft, end: Alignment.bottomRight)),</code>
<code>);</code>
<code>return Drawer(</code>
<code>child: Stack(</code>
<code>children: <Widget>[</code>
<code>_buildDrawerBack(),</code>
<code>ListView(</code>
<code>padding: EdgeInsets.only(left: 32.0),</code>
<code>children: <Widget>[</code>
<code>Container(</code>
<code>margin: EdgeInsets.only(bottom: 8.0),</code>
<code>padding: EdgeInsets.fromLTRB(0.0, 16.0, 16.0, 8.0),</code>
<code>height: 170.0,</code>
<code>child: Stack(</code>
<code>children: <Widget>[</code>
<code>Positioned(</code>
<code>top: 8.0,</code>
<code>left: 0.0,</code>
<code>child: Text(</code>
<code>"Lista De Presentes",</code>
<code>style: TextStyle(</code>
<code>fontSize: 30.0,</code>
<code>fontWeight: FontWeight.bold,</code>
<code>color: Colors.deepPurple,</code>
<code>),</code>
<code>),</code>
<code>),</code>
<code>Positioned(</code>
<code>left: 0.0,</code>
<code>bottom: 0.0,</code>
<code>child: ScopedModelDescendant<UserModel>(</code>
<code>builder: (context, child, model) {</code>
<code>return Column(</code>
<code>crossAxisAlignment: CrossAxisAlignment.start,</code>
<code>children: <Widget>[</code>
<code>Text("Olá, ${!model.isLoggedIn() ? "" : model.userData["name"]}",</code>
<code>style: TextStyle(</code>
<code>fontSize: 15.0,</code>
<code>fontWeight: FontWeight.bold,</code>
<code>color: Colors.deepPurple,</code>
<code>),</code>
<code>),</code>
<code>GestureDetector(</code>
<code>child: Text(</code>
<code>!model.isLoggedIn() ?</code>
<code>"Entre ou cadastre-se"</code>
<code>: "Sair",</code>
<code>style: TextStyle(</code>
<code>color: Colors.deepPurple,</code>
<code>fontSize: 15.0,</code>
<code>fontWeight: FontWeight.bold,</code>
<code>),</code>
<code>),</code>
<code>onTap: () {</code>
<code>if(!model.isLoggedIn())</code>
<code>Navigator.of(context).push(</code>
<code>MaterialPageRoute(</code>
<code>builder: (context) => LoginScreen()),</code>
<code>);</code>
<code>else</code>
…
New tweet from FlutterDev:
👩‍🎨Get started with CustomPainter!
Have fun with the sample we've created to get started drawing on the canvas. Change the size, opacity, and color of the visualization.
Try out this sample in DartPad → https://t.co/D1BwJpDm12 pic.twitter.com/4uaphiU211— Dart Language (@dart_lang) December 17, 2019
December 17, 2019 at 05:58PM
http://twitter.com/FlutterDev/status/1206981928995282944
👩‍🎨Get started with CustomPainter!
Have fun with the sample we've created to get started drawing on the canvas. Change the size, opacity, and color of the visualization.
Try out this sample in DartPad → https://t.co/D1BwJpDm12 pic.twitter.com/4uaphiU211— Dart Language (@dart_lang) December 17, 2019
December 17, 2019 at 05:58PM
http://twitter.com/FlutterDev/status/1206981928995282944
New post on /r/flutterdev subreddit:
First article on Flutter. I need your support and comments. Thanks!
https://ift.tt/35zv802
December 17, 2019 at 08:43PM by georgetk1996
https://ift.tt/2EoRPIa
First article on Flutter. I need your support and comments. Thanks!
https://ift.tt/35zv802
December 17, 2019 at 08:43PM by georgetk1996
https://ift.tt/2EoRPIa
Medium
Flutter : How cross-platform made possible.
If you are a software geek, you must have heard about Flutter. There’s so much hype being created and it has become a trend…
New post on /r/flutterdev subreddit:
Creating Music with Flutter
https://ift.tt/36KKRcz
December 17, 2019 at 09:53PM by Elixane
https://ift.tt/2YZAwqP
Creating Music with Flutter
https://ift.tt/36KKRcz
December 17, 2019 at 09:53PM by Elixane
https://ift.tt/2YZAwqP
Medium
Creating Music with Flutter
A while back, I fell in love with the tonematrix.
New post on /r/flutterdev subreddit:
Offline geolocation using flutter
Hello guys! so I am trying to get a flutter app to pretty much do what the geopoint-location lib does ( https://pub.dev/packages/geopoint_location ) only do it offline. that is - take device geolocation coordinates and output the region name. how would you suggest doing that?From what I understand this geopoint-location package uses some sort of web database to retrieve the region name, since it didn't work if the device is offline.My idea is perhaps try using this package, only connect it to a device storage database (perhaps not storing the entire database but only GETting small chunks of it from the server). since I am new in flutter / dart I'd love to get any input from you guys, thanks!edit: would be cool if you could direct me to resources on how to build / edit / find such a database that holds world regions names and perimeter (be it polygons or whatever).
December 17, 2019 at 09:53PM by BarbDart
https://ift.tt/35AWq64
Offline geolocation using flutter
Hello guys! so I am trying to get a flutter app to pretty much do what the geopoint-location lib does ( https://pub.dev/packages/geopoint_location ) only do it offline. that is - take device geolocation coordinates and output the region name. how would you suggest doing that?From what I understand this geopoint-location package uses some sort of web database to retrieve the region name, since it didn't work if the device is offline.My idea is perhaps try using this package, only connect it to a device storage database (perhaps not storing the entire database but only GETting small chunks of it from the server). since I am new in flutter / dart I'd love to get any input from you guys, thanks!edit: would be cool if you could direct me to resources on how to build / edit / find such a database that holds world regions names and perimeter (be it polygons or whatever).
December 17, 2019 at 09:53PM by BarbDart
https://ift.tt/35AWq64
Dart packages
geopoint_location | Flutter Package
Handle real time location data. Get structured Geopoint data from Geolocator
New post on /r/flutterdev subreddit:
Functional Error Handling in Flutter & Dart (#2 – Either, Task, FP)
https://www.youtube.com/watch?v=ZTU-WWEOoII&feature=emb_title
December 17, 2019 at 09:49PM by Elixane
https://ift.tt/2S3c0mU
Functional Error Handling in Flutter & Dart (#2 – Either, Task, FP)
https://www.youtube.com/watch?v=ZTU-WWEOoII&feature=emb_title
December 17, 2019 at 09:49PM by Elixane
https://ift.tt/2S3c0mU
YouTube
Functional Error Handling in Flutter & Dart (#2 – Either, Task, FP)
📗 Learn from the written tutorial 👇👇
https://resocoder.com/proper-error-handling-2
🎯 The biggest Flutter conference in Europe:
https://fluttereurope.dev
📧 Get Flutter news 📰 and resources:
👉 http://flutter.education
👨💻 Do you write good code? Find out…
https://resocoder.com/proper-error-handling-2
🎯 The biggest Flutter conference in Europe:
https://fluttereurope.dev
📧 Get Flutter news 📰 and resources:
👉 http://flutter.education
👨💻 Do you write good code? Find out…
New post on /r/flutterdev subreddit:
Dart extensions, generating `copyWith` methods
https://ift.tt/34uIUj1
December 17, 2019 at 10:20PM by numen31337
https://ift.tt/38Lgyo2
Dart extensions, generating `copyWith` methods
https://ift.tt/34uIUj1
December 17, 2019 at 10:20PM by numen31337
https://ift.tt/38Lgyo2
New tweet from FlutterDev:
🌎Around the world, around the world.🌍
We all have different inspirations. What do you use Flutter for?
#FlutterInteract → https://t.co/7agMfGCER2 pic.twitter.com/Nq7LhV36Ko— Flutter (@FlutterDev) December 17, 2019
December 18, 2019 at 12:34AM
http://twitter.com/FlutterDev/status/1207081764398612480
🌎Around the world, around the world.🌍
We all have different inspirations. What do you use Flutter for?
#FlutterInteract → https://t.co/7agMfGCER2 pic.twitter.com/Nq7LhV36Ko— Flutter (@FlutterDev) December 17, 2019
December 18, 2019 at 12:34AM
http://twitter.com/FlutterDev/status/1207081764398612480
New post on /r/flutterdev subreddit:
What is the best backend for Flutter?
I'm doing a project to create a trading platform. After some research, I ended up agreeing on using flutter due to its performance. I was planning to use Laravel as the backend of my application, but it's quite hard because the user wants the application to be real-time.So is there any better backend framework/service for Flutter? I'm willing to learn other language.Thanks reddit, really need help here
December 18, 2019 at 05:18AM by gregory_sykes
https://ift.tt/36LAkxN
What is the best backend for Flutter?
I'm doing a project to create a trading platform. After some research, I ended up agreeing on using flutter due to its performance. I was planning to use Laravel as the backend of my application, but it's quite hard because the user wants the application to be real-time.So is there any better backend framework/service for Flutter? I'm willing to learn other language.Thanks reddit, really need help here
December 18, 2019 at 05:18AM by gregory_sykes
https://ift.tt/36LAkxN
reddit
What is the best backend for Flutter?
I'm doing a project to create a trading platform. After some research, I ended up agreeing on using flutter due to its performance. I was planning...
New post on /r/flutterdev subreddit:
Getting location while the screen is off.
Hey, I'm developing an app that needs to retrieve the users location and store it for later db writing while the screen is off. Is there any way to do this? Or do I have to do some funky native stuff?
December 18, 2019 at 04:57AM by Keatron--
https://ift.tt/2EvHdao
Getting location while the screen is off.
Hey, I'm developing an app that needs to retrieve the users location and store it for later db writing while the screen is off. Is there any way to do this? Or do I have to do some funky native stuff?
December 18, 2019 at 04:57AM by Keatron--
https://ift.tt/2EvHdao
reddit
Getting location while the screen is off.
Hey, I'm developing an app that needs to retrieve the users location and store it for later db writing while the screen is off. Is there any way...
New post on Flutter Dev Google group:
google-sign_in throwing "Platform Exception" on Android.
Hi All, Did any one encounter this scenario with google_sign_in on Android where, after selecting one of the existing mail on Android device, soon it's throwing the platform exception. Currently we are using the "google_sign_in" plugin with 4.1.1 version. Any help on this is appreciated.
December 18, 2019 at 07:32AM by appctest mail7
https://ift.tt/2Z5o3BN
google-sign_in throwing "Platform Exception" on Android.
Hi All, Did any one encounter this scenario with google_sign_in on Android where, after selecting one of the existing mail on Android device, soon it's throwing the platform exception. Currently we are using the "google_sign_in" plugin with 4.1.1 version. Any help on this is appreciated.
December 18, 2019 at 07:32AM by appctest mail7
https://ift.tt/2Z5o3BN
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:
Flutter View-ViewModel with Provider
I'm refactoring my Flutter code. By planning to separate the View and State Management in separate files. 1. Am I doing it right? I created a ViewModel class that inherits the ChangeNotifier class as follows. 2. my problem now is, every time I open the page. The state still stores the past state.
December 18, 2019 at 08:10AM by Black Clover
https://ift.tt/2PBdsvr
Flutter View-ViewModel with Provider
I'm refactoring my Flutter code. By planning to separate the View and State Management in separate files. 1. Am I doing it right? I created a ViewModel class that inherits the ChangeNotifier class as follows. 2. my problem now is, every time I open the page. The state still stores the past state.
December 18, 2019 at 08:10AM by Black Clover
https://ift.tt/2PBdsvr
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 1.12 New Announcements | My Opinions | Flutter Interact
https://youtu.be/btWBendfaCA
December 18, 2019 at 08:59AM by imthepk
https://ift.tt/34wbUXQ
Flutter 1.12 New Announcements | My Opinions | Flutter Interact
https://youtu.be/btWBendfaCA
December 18, 2019 at 08:59AM by imthepk
https://ift.tt/34wbUXQ
YouTube
Flutter 1.12 New Announcements | My Opinions | Flutter Interact
This video is about new Flutter Interact announcements. Read my articles on medium - https://medium.com/@imthepk My portfolio - https://pawan.live Flutter UI...
New post on Flutter Dev Google group:
Use setState in ListView
I trying to get data from two tables and display to ListView. child: Container( child: StreamBuilder
Use setState in ListView
I trying to get data from two tables and display to ListView. child: Container( child: StreamBuilder
New post on /r/flutterdev subreddit:
I just published Introducing Platypus - Creating Code Screenshots Made Easy on Mobile 📱
https://ift.tt/2EtbBCn
December 18, 2019 at 10:17AM by fleper
https://ift.tt/35AndiL
I just published Introducing Platypus - Creating Code Screenshots Made Easy on Mobile 📱
https://ift.tt/2EtbBCn
December 18, 2019 at 10:17AM by fleper
https://ift.tt/35AndiL
Medium
Introducing Platypus - Creating Code Screenshots Made Easy on Mobile 📱
Carbon is a popular service for creating beautiful code screenshots. I always use it to create awesome code screenshots. Imagine a…
New post on /r/flutterdev subreddit:
I just published Introducing Holden - A Certificate Generator App using Flutter
https://ift.tt/2EAhnlz
December 18, 2019 at 10:15AM by fleper
https://ift.tt/2MmgIc7
I just published Introducing Holden - A Certificate Generator App using Flutter
https://ift.tt/2EAhnlz
December 18, 2019 at 10:15AM by fleper
https://ift.tt/2MmgIc7
Medium
Introducing Holden - A Certificate Generator App using Flutter
If you’re an event organizer, you know the pain of generating the certificates for participants. What if there was a mobile application…
New post on /r/flutterdev subreddit:
<b>Why are we embracing Flutter in our team?</b>
Originally published <a href="https://www.sadmansamee.blog/why_embrace_flutter/">here</a>The Simple answer is <strong>to make our life easier</strong>, for details <strong>keep reading!</strong>I work at a start-up. And like any other start-up, it has that typical start-up workload and crazy requirements that we need to meet along withFaster Delivery.Lack of resources.Frequent feature request.Experimental features.And off-course, technical debt.we have two codebases for two platforms (Android, iOS) written in Objective-C, Java and partially(new features) Kotlin and Swift. And those legacy codebases are hard to manage, fix bugs or to modify. It is much easier for the team to write a new and better one than carrying on with the legacy code.For a fast delivery and frequent request for new features, there are some problems faced by all the start-up programs where people are usually working on different platforms. when two-person working on two different platform tries to develop the same feature, usually the features end up looking nonidentical. Most of the time these same features from different platforms don't get finished at the same time and fail to meet the deadlines, thus a delay in the release date! it's not that they lack very good communication, planning or a good amount of effort, still, it happens.here's why :Two solution always seems a bit different after implementation due to human biases.Two teams produce two different kinds of bugs.Individually they solve each bug, costing more time.QA team invests triple the effort on each platform to find bugs, test functionality, and match between the platform so check if both teams could achieve the same thing or not.That results in prolonged development time, delay in the release day (making the product and commercial team unhappy).The solutionA unified codebase that will serve both platforms so thatAll the team members can work on the single codebase to implement a single feature to avoid human biases reducing the number of bugs and feature mismatch.Lesser QA team effort.A lot less development time.A lot less effort on maintenance and bug fix.Fast feature request full-fill.But the question is, there are many options to choose from but which one should we choose?Ionic and Xamarin weren't a good candidate. We tried out React-native a bit last year and decided not to continue for the following reasons:Performance lag.Can't render complex shadows.Buggy ( at least it seemed to me).It's hard to write and debug JS code( for a dev who's background is Java, Swift or strongly typed language)Flutter to the rescue!!!I was skeptic at first but then did some demo project, read some case studies on other companies. Finally, embraced it and decided it's a perfect candidate.reasons are:Marvelous performance.Declarative UI code that helps in faster and easier implementation of modern reactive features.Great tooling.Able to add to existing Android and iOS projects as a third-party dependency.Fast development.UI rendering is awesome.How exactly will the transition follow? there will be three stages:<strong>Identification Stage:</strong> At first we need to identify which are the existing features that need to be written with Flutter (legacy code or the buggy ones). And off-course, new features that will be developed in Flutter.<strong>Transition Stage:</strong> At this stage, we will be converting legacy or buggy native codes to Flutter. In this stage, APK/IPA size might be a bit bigger because of many factors ( discussed in detail on my next blog). (duration: 3 - 6 months)<strong>Final Stage:</strong> At this stage, all the native codes will be converted to Flutter making all the codes to be dart code.
This is the initial plan, I'll write another technical blog after a few days about the progress and difficulties that we could face and how to solve them.Originally published <a href="https://www.sadmansamee.blo…
<b>Why are we embracing Flutter in our team?</b>
Originally published <a href="https://www.sadmansamee.blog/why_embrace_flutter/">here</a>The Simple answer is <strong>to make our life easier</strong>, for details <strong>keep reading!</strong>I work at a start-up. And like any other start-up, it has that typical start-up workload and crazy requirements that we need to meet along withFaster Delivery.Lack of resources.Frequent feature request.Experimental features.And off-course, technical debt.we have two codebases for two platforms (Android, iOS) written in Objective-C, Java and partially(new features) Kotlin and Swift. And those legacy codebases are hard to manage, fix bugs or to modify. It is much easier for the team to write a new and better one than carrying on with the legacy code.For a fast delivery and frequent request for new features, there are some problems faced by all the start-up programs where people are usually working on different platforms. when two-person working on two different platform tries to develop the same feature, usually the features end up looking nonidentical. Most of the time these same features from different platforms don't get finished at the same time and fail to meet the deadlines, thus a delay in the release date! it's not that they lack very good communication, planning or a good amount of effort, still, it happens.here's why :Two solution always seems a bit different after implementation due to human biases.Two teams produce two different kinds of bugs.Individually they solve each bug, costing more time.QA team invests triple the effort on each platform to find bugs, test functionality, and match between the platform so check if both teams could achieve the same thing or not.That results in prolonged development time, delay in the release day (making the product and commercial team unhappy).The solutionA unified codebase that will serve both platforms so thatAll the team members can work on the single codebase to implement a single feature to avoid human biases reducing the number of bugs and feature mismatch.Lesser QA team effort.A lot less development time.A lot less effort on maintenance and bug fix.Fast feature request full-fill.But the question is, there are many options to choose from but which one should we choose?Ionic and Xamarin weren't a good candidate. We tried out React-native a bit last year and decided not to continue for the following reasons:Performance lag.Can't render complex shadows.Buggy ( at least it seemed to me).It's hard to write and debug JS code( for a dev who's background is Java, Swift or strongly typed language)Flutter to the rescue!!!I was skeptic at first but then did some demo project, read some case studies on other companies. Finally, embraced it and decided it's a perfect candidate.reasons are:Marvelous performance.Declarative UI code that helps in faster and easier implementation of modern reactive features.Great tooling.Able to add to existing Android and iOS projects as a third-party dependency.Fast development.UI rendering is awesome.How exactly will the transition follow? there will be three stages:<strong>Identification Stage:</strong> At first we need to identify which are the existing features that need to be written with Flutter (legacy code or the buggy ones). And off-course, new features that will be developed in Flutter.<strong>Transition Stage:</strong> At this stage, we will be converting legacy or buggy native codes to Flutter. In this stage, APK/IPA size might be a bit bigger because of many factors ( discussed in detail on my next blog). (duration: 3 - 6 months)<strong>Final Stage:</strong> At this stage, all the native codes will be converted to Flutter making all the codes to be dart code.
This is the initial plan, I'll write another technical blog after a few days about the progress and difficulties that we could face and how to solve them.Originally published <a href="https://www.sadmansamee.blo…
New post on /r/flutterdev subreddit:
New to flutter
Vscode on my pc wont work -- it just appears as a dark window with none of the features not even the window bar present. I have uninstalled and installed different versions but still does not work. Please can you guys help me out ?
December 18, 2019 at 12:43PM by Mohammed_Nazideen
https://ift.tt/2Ercn2K
New to flutter
Vscode on my pc wont work -- it just appears as a dark window with none of the features not even the window bar present. I have uninstalled and installed different versions but still does not work. Please can you guys help me out ?
December 18, 2019 at 12:43PM by Mohammed_Nazideen
https://ift.tt/2Ercn2K
reddit
New to flutter
A subreddit for Google's crossplatform UI toolkit.
New post on /r/flutterdev subreddit:
Custom Implicit Animations in Flutter…with TweenAnimationBuilder
https://ift.tt/2Ex4IAa
December 18, 2019 at 12:43PM by sebaslogen
https://ift.tt/2S4ZoMo
Custom Implicit Animations in Flutter…with TweenAnimationBuilder
https://ift.tt/2Ex4IAa
December 18, 2019 at 12:43PM by sebaslogen
https://ift.tt/2S4ZoMo
Medium
Custom Implicit Animations in Flutter…with TweenAnimationBuilder
To make animations in Flutter, there are many different options available. How do you choose the right animation widget? This article…
New post on /r/flutterdev subreddit:
<b>The method '>' was called on null.</b>
Im getting an error while executing some code from the Flutter CodeLabs Website​import 'dart:async';import 'package:flutter/material.dart';import 'package:flutter_test/flutter_test.dart';​class MyWidget extends StatelessWidget {u/overrideWidget build(BuildContext context) {return Row(children: [BlueBox(),BlueBox(),BlueBox(),],);}}​class BlueBox extends StatelessWidget {u/overrideWidget build(BuildContext context) {return Container(width: 50,height: 50,decoration: BoxDecoration(color: <a href="https://Colors.blue">Colors.blue</a>,border: Border.all(),),);}}​​​​Launching lib\main.dart on Android SDK built for x86 in debug mode...Initializing gradle...Resolving dependencies...Running Gradle task 'assembleDebug'...Built build\app\outputs\apk\debug\app-debug.apk.Installing build\app\outputs\apk\app.apk...Syncing files to device Android SDK built for x86...I/flutter ( 4050): ══╡ EXCEPTION CAUGHT BY RENDERING LIBRARY ╞═════════════════════════════════════════════════════════I/flutter ( 4050): The following assertion was thrown during performLayout():I/flutter ( 4050): Horizontal RenderFlex with multiple children has a null textDirection, so the layout order isI/flutter ( 4050): undefined.I/flutter ( 4050): 'package:flutter/src/rendering/flex.dart':I/flutter ( 4050): Failed assertion: line 439 pos 18: 'textDirection != null'I/flutter ( 4050):I/flutter ( 4050): Either the assertion indicates an error in the framework itself, or we should provide substantiallyI/flutter ( 4050): more information in this error message to help you determine and fix the underlying cause.I/flutter ( 4050): In either case, please report this assertion by filing a bug on GitHub:I/flutter ( 4050): <a href="https://github.com/flutter/flutter/issues/new?template=BUG.md">https://github.com/flutter/flutter/issues/new?template=BUG.md</a>I/flutter ( 4050):I/flutter ( 4050): User-created ancestor of the error-causing widget was:I/flutter ( 4050): MyWidget file:///C:/Users/rjsod/AndroidStudioProjects/flutter_app/lib/main.dart:5:23I/flutter ( 4050):I/flutter ( 4050): When the exception was thrown, this was the stack:I/flutter ( 4050): #2 RenderFlex._debugHasNecessaryDirections (package:flutter/src/rendering/flex.dart:439:18)I/flutter ( 4050): #3 RenderFlex.performLayout (package:flutter/src/rendering/flex.dart:638:12)I/flutter ( 4050): #4 RenderObject.layout (package:flutter/src/rendering/object.dart:1701:7)I/flutter ( 4050): #5 RenderView.performLayout (package:flutter/src/rendering/view.dart:152:13)I/flutter ( 4050): #6 RenderObject._layoutWithoutResize (package:flutter/src/rendering/object.dart:1578:7)I/flutter ( 4050): #7 PipelineOwner.flushLayout (package:flutter/src/rendering/object.dart:844:18)I/flutter ( 4050): #8 RendererBinding.drawFrame (package:flutter/src/rendering/binding.dart:341:19)I/flutter ( 4050): #9 WidgetsBinding.drawFrame (package:flutter/src/widgets/binding.dart:761:13)I/flutter ( 4050): #10 RendererBinding._handlePersistentFrameCallback (package:flutter/src/rendering/binding.dart:280:5)I/flutter ( 4050): #11 SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:1033:15)I/flutter ( 4050): #12 SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:975:9)I/flutter ( 4050): #13 SchedulerBinding.scheduleWarmUpFrame.<anonymous closure> (package:flutter/src/scheduler/binding.dart:784:7)I/flutter ( 4050): #22 _Timer._runTimers (dart:isolate-patch/timer_impl.dart:382:19)I/flutter ( 4050): #23 _Timer._handleMessage (dart:isolate…
<b>The method '>' was called on null.</b>
Im getting an error while executing some code from the Flutter CodeLabs Website​import 'dart:async';import 'package:flutter/material.dart';import 'package:flutter_test/flutter_test.dart';​class MyWidget extends StatelessWidget {u/overrideWidget build(BuildContext context) {return Row(children: [BlueBox(),BlueBox(),BlueBox(),],);}}​class BlueBox extends StatelessWidget {u/overrideWidget build(BuildContext context) {return Container(width: 50,height: 50,decoration: BoxDecoration(color: <a href="https://Colors.blue">Colors.blue</a>,border: Border.all(),),);}}​​​​Launching lib\main.dart on Android SDK built for x86 in debug mode...Initializing gradle...Resolving dependencies...Running Gradle task 'assembleDebug'...Built build\app\outputs\apk\debug\app-debug.apk.Installing build\app\outputs\apk\app.apk...Syncing files to device Android SDK built for x86...I/flutter ( 4050): ══╡ EXCEPTION CAUGHT BY RENDERING LIBRARY ╞═════════════════════════════════════════════════════════I/flutter ( 4050): The following assertion was thrown during performLayout():I/flutter ( 4050): Horizontal RenderFlex with multiple children has a null textDirection, so the layout order isI/flutter ( 4050): undefined.I/flutter ( 4050): 'package:flutter/src/rendering/flex.dart':I/flutter ( 4050): Failed assertion: line 439 pos 18: 'textDirection != null'I/flutter ( 4050):I/flutter ( 4050): Either the assertion indicates an error in the framework itself, or we should provide substantiallyI/flutter ( 4050): more information in this error message to help you determine and fix the underlying cause.I/flutter ( 4050): In either case, please report this assertion by filing a bug on GitHub:I/flutter ( 4050): <a href="https://github.com/flutter/flutter/issues/new?template=BUG.md">https://github.com/flutter/flutter/issues/new?template=BUG.md</a>I/flutter ( 4050):I/flutter ( 4050): User-created ancestor of the error-causing widget was:I/flutter ( 4050): MyWidget file:///C:/Users/rjsod/AndroidStudioProjects/flutter_app/lib/main.dart:5:23I/flutter ( 4050):I/flutter ( 4050): When the exception was thrown, this was the stack:I/flutter ( 4050): #2 RenderFlex._debugHasNecessaryDirections (package:flutter/src/rendering/flex.dart:439:18)I/flutter ( 4050): #3 RenderFlex.performLayout (package:flutter/src/rendering/flex.dart:638:12)I/flutter ( 4050): #4 RenderObject.layout (package:flutter/src/rendering/object.dart:1701:7)I/flutter ( 4050): #5 RenderView.performLayout (package:flutter/src/rendering/view.dart:152:13)I/flutter ( 4050): #6 RenderObject._layoutWithoutResize (package:flutter/src/rendering/object.dart:1578:7)I/flutter ( 4050): #7 PipelineOwner.flushLayout (package:flutter/src/rendering/object.dart:844:18)I/flutter ( 4050): #8 RendererBinding.drawFrame (package:flutter/src/rendering/binding.dart:341:19)I/flutter ( 4050): #9 WidgetsBinding.drawFrame (package:flutter/src/widgets/binding.dart:761:13)I/flutter ( 4050): #10 RendererBinding._handlePersistentFrameCallback (package:flutter/src/rendering/binding.dart:280:5)I/flutter ( 4050): #11 SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:1033:15)I/flutter ( 4050): #12 SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:975:9)I/flutter ( 4050): #13 SchedulerBinding.scheduleWarmUpFrame.<anonymous closure> (package:flutter/src/scheduler/binding.dart:784:7)I/flutter ( 4050): #22 _Timer._runTimers (dart:isolate-patch/timer_impl.dart:382:19)I/flutter ( 4050): #23 _Timer._handleMessage (dart:isolate…
New post on /r/flutterdev subreddit:
MVP and Flutter
Hi all! I want to post here how I structure my Flutter apps using MVP architecture (that isn't listed on flutter.dev in state management approach) so I would like to know from your experiences if software code structured in this way is solid.I use this architecture with my Android apps so I bring that on Flutter. I know that most used Flutter architecture is BloC but with MVP it can be possible to separate logic from widget states to keep all simple and clean.I attach an example of MVP flutter app so you can review it.What do you think about it? 😉Futter MVP
December 18, 2019 at 11:54AM by tapeo
https://ift.tt/36Odjuo
MVP and Flutter
Hi all! I want to post here how I structure my Flutter apps using MVP architecture (that isn't listed on flutter.dev in state management approach) so I would like to know from your experiences if software code structured in this way is solid.I use this architecture with my Android apps so I bring that on Flutter. I know that most used Flutter architecture is BloC but with MVP it can be possible to separate logic from widget states to keep all simple and clean.I attach an example of MVP flutter app so you can review it.What do you think about it? 😉Futter MVP
December 18, 2019 at 11:54AM by tapeo
https://ift.tt/36Odjuo
GitHub
tapeo/flutter_mvp_example
Contribute to tapeo/flutter_mvp_example development by creating an account on GitHub.