Welcome to Marco's (JediPixels) Flutter RU-vid channel. Get an introduction to how Flutter works behind the scenes and code samples.
Flutter gives new and experienced developers the ability to build beautiful mobile apps. Build dynamic native mobile apps for Android and iOS at an accelerated pace by using a single code base. The single code is accessible on both platforms and avoids going through a complex series of codes for each operating system. Discover Beginning Flutter’s hands-on approach and why so many developers find this language to be essential for building apps.
Subscribe to stay connected: bit.ly/JediPixelsRU-vid
I really like how you have simplified everything. I have been learning Flutter for a while and your videos are great to watch because instead of diving straight into things, you help with understanding both the concepts and the way to think that is needed to apply the concepts. Best of all, your videos are short and to the point!
I have used this but i get null error The following TypeErrorImpl was thrown building ValueListenableBuilder<int>(state: _ValueListenableBuilderState<int>#daaba): Unexpected null value. not able to find the solution for this
Thank you for these 3 videos! I have been using BloC and Riverpod but have no idea what is going on in the background. At least with these methods I understand what it is I am doing. Streams next I am assuming? :D Are there any performance differences between Inherited/ValueNotifier/ChangeNotifier? Seems like they can all be used interchangeably.
Yes, I am planning using Streams for future videos. Like you said, they can be use interchangeably, it's a preference depending on the goal that you need to accomplish. With the projects I have worked on, I have not seen any serious difference in performance. What can effect the performance is the app's logic that runs the custom task before the changes are redrawn on the screen. Thanks you.
This might be a bit low-level for most, but as a non-coder, still developing my skills at beginner level, I would welcome a tutorial that shows how to write a basic program/code written directly in dart, then take that code to structure a flutter app. I have yet to see a dart/flutter beginner course take this approach. I can code a simple program in Dart, but when I try to move that to flutter, I am stumped, and get lost very quickly!
I have been looking at your code. I was wondering, because you said that the state can only be used inside the widget tree (from parent to child || children), can we use the state of the inheritedWidget if it is used with push navigations ( i.e. pressing a button to Navigate to a new Scaffold)? What would be an example of when we couldn't use an InheritedWidget due to it being outside of the scope of the Widget tree? Am I correct in thinking that it can't be used in certain situations? Hopefully I am being clear.
The entire application is a big widget tree starting at the root when runApp(MyApp()) is called from the main() method in the main.dart file. You can place the InheritedWidget in your main.dart file wrapping the Home() page. It will make it available to all child widgets. If I understand your question correctly, wherever you place the InheritedWidget any widgets above will not have access to it, but all of the widgets below will. If you try to access the InheritedWidget from a widget above you will get a Unexpected null value error. You can use the InheritedWidget with the Navigator like this: Navigator.of(context).push( MaterialPageRoute( builder: (context) => const AppState( moods: 'Happy', child: MyPage(), ), ), ); In the MyPage() you access the InheritedWidget like this: @override void didChangeDependencies() { super.didChangeDependencies(); AppState appState = AppState.of(context)!; debugPrint('appState: ${appState.moods}'); }
thank you for the detailed teaching I was searching for some widget that did the same and I had explored the hero tag but was not able to apply it properly, thank you 🙏
Thank you for this video! I have a question: How do you position widgets if the height of some of the ones above are variable? Such as the title. Let's say the title can be multiple lines. How would you know where to position the subtitle? Same thing with the image. If the image can be different sizes, the position of the title will depend on that. Then the position of the subtitle will depend on the height of both the image and title. And the container's height depends on all of those. So is there a solution to this? Thank you in advance (I'm new to Flutter)!
awesome... I feel like I hit a jackpot. Its been 1 week since I started flutter but the problem is, I've been overloaded with too much information reading from articles to articles and it made me confused. I don't know where to start until I read your article on medium. Thank u so much. God Bless u.
This is brilliant, absolutely brilliant!! You've made everything so simple to understand. I've paid for coding courses and they make everything so complicated. THANK YOU!!!
I am reading a book beginning flutter a hands on guide to App Development by Marco L. Nipoli and your talking the same thing just like the book because English is not my first language so its hard to understand everything from the book