Flutter Tutorial for Beginners #31 - Formatting & Showing Dates

preview_player
Показать описание
Hey gang, in this Flutter tutorial I'll show you how we can quickly format our date and output it to the home screen.
----------------------------------------

🐱‍💻 🐱‍💻 Course Links:

🐱‍💻 🐱‍💻 Other Related Courses:

Рекомендации по теме
Комментарии
Автор

I mean, you never expect nothing but the best from a Ninja

hassan_codes
Автор

Like who gives a thumbs down for this great content?!? Some people.. Great work Ninja.

djcali
Автор

If you try data['location'] and it says "method [ ] can’t be unconditionally invoked because the receiver can be null", or after adding an exclamation mark it still says the operator [ ] is not defined for Object type, use the following statements could help
Map data = { }; // declare an empty Map object therefore it cannot be null
data = as Map;

tanthokg
Автор

I'm doing everything in this course, thank you so much, I will finish it, can't wait to get to the final video.

Dequiss
Автор

One of the best tutorials I've watched.

mzeiger
Автор

In 2022 for the latest version of flutter it will be a lot of error with the null safety. Here is how to fix it:
First put this at the top: import 'dart:convert';
then change the following lines:
class _HomeState extends State<Home> {
Map data = {};
Object? parameters;

@override
Widget build(BuildContext context) {
parameters =
Map data =

ionfinisher
Автор

this is awesome...you are one of the best flutter tutor have come across

eniolaadeniyi
Автор

To solve problems for new dart version add at the top:
import 'dart:convert';

and then change the following lines:


class _HomeState extends State<Home> {
Object? parameters;

@override
Widget build(BuildContext context) {
parameters =
Map data =

Then you can use data in the widgets withour problems.

franciscojavierechanovepas
Автор

This course is awesome!!! looking forward to next videos.Going to start next playlist soon!!

alpishjain
Автор

When trying to use Navigator to go to the home screen, I'm getting a "Don't use 'BuildContext's across async gaps."

The code works fine when i first start it up (in chrome), but if I Hot Restart, I get tons of errors, starting with:
"Expected a value of type 'Map<dynamic, dynamic>', but got one of type 'Null'"

Apparently, the "arguments" are null when I navigate to Home. What has changed in newer flutter?

Edit: It's because when I used Hot Restart, the app was still on the Home page, not the Loading page.

russmbiz
Автор

Thank you the net ninja. Please is there a way to pass a hole object from one route to another instead of passing single data seperatly??

Dresseurdecode
Автор

We have to add the minutes offset as well. Great content !!

vinoth
Автор

Thank you for your hard work i appricate your work. :)

repiatx
Автор

Thank you very much sir, good lessons for beginners

saimonsaimon
Автор

I have a doubt. Why does the edit location goes into the center, when we add row property into the Scaffold Widget.

girishbhargava
Автор

In general is it bad to design positioning using px values? Is it better to use relative scaling? How would this app look on a tiny vs huge device?

dovidsamuels
Автор

Thank you for your course.
Kindly remember putting the links to packages, you seem to forget that.

yandelyano
Автор

Thank you very much for all for this spending your time!!!

vt-steven
Автор

My Code is running but when i tried
try{
as Map;
print("---");
print(data);
print("---");
}
catch(e){
print("Home.dart error: $e");
}

the data is print with no problem but the error are printed as well it said
Home.dart error: Expected a value of type 'Map<dynamic, dynamic>', but got one of type 'Null'

So there's a split second when the loading pages are red(error) then it switch to home page with berlin write on it

AnonymousW
Автор

Great video! thank you, The Net Ninja!

섀플리