Third time's the charm: Testing our Skeleton app (The Boring Flutter Development Show, Ep. 54)

preview_player
Показать описание
Welcome back to The Boring Flutter Development Show with Andrew Fitz Gibbon and Craig Labenz. In today’s episode, Fitz and Craig will attempt to add SharedPreferences to the Skeleton app and test it.

Chapters:
​​0:00 - Intro
2:30 - Talking through adding SharedPreferences (and tests!) to SettingsService
10:25 - Should we upgrade our Flutter/Dart versions on the spot?
19:10 - Fitz and Craig take some bets on how long the tests take to run
22:30 - What's next? UI tests!
26:40 - QUESTION: What's the difference between declaring an instance variable vs. initializing in a constructor?
28:00 - Actually starting to write the tests
38:30 - Okay now... how do we find the widget to test?
50:00 - And now we end the episode with a bunch of errors! Or not...?
1:05:00 - Have ideas? Write to us in the comments!

Resources:

#Flutter #BoringShow #Developer

product: Flutter - Development - User interface; fullname: Andrew Fitz Gibbon, Craig Labenz;
Рекомендации по теме
Комментарии
Автор

Guys, in the testWidgets, you are just tapping the wrong widget 😀
You were trying to tap on the entire SettingsView widget, and not on the actual dropdown button, that's why it didn't expand, and that's why the other click was not actually happening 👍

lukasz.debowski
Автор

This was so funny. I love you guys! Keep going...

dotnetguy
Автор

I think writing pumpsettle and duration after second tap should work .... nice video for people new with widget tests .

TheMyshreyash
Автор

Is there a repo containing the code you ended up with?

nietaki
Автор

Not sure if it is just me but on Windows/Web I had no error but with Android (SDK32) because I tried to access SharedPreferences before the RunApp and had to add:

just before the loadSettings()

await
Did I miss that in the episode?

emmanuelauffray
Автор

Hello how the hell flutter handle GDRP? I’m stucked after developing app with flutter. There is no information about how to creat GDRP consent for admob when my app is developed in flutter. Help me. Please

mrketanprajapati
Автор

Why error Copywith methods remove flutter 2.8

chandanvishwakarma