Build a Native iOS Widget App with Flutter & SwiftUI | Flutter Tutorial

preview_player
Показать описание
Let's add an iOS Home Screen widget to our Flutter application!

It can be tricky to find a guide for this since views in Flutter are called "Widgets". In this tutorial we will build an iPhone Widget for our iOS Flutter Application.

GitHub Repo:

Application Dependencies:
Flutter Widget Kit:
`flutter pub add flutter_widgetkit`

Development Dependencies:
- Xcode
- Xcode Command Line Tools
- Flutter & Dart
- iOS Simulator

Timestamps:
0:00 - Intro
0:23 - Creating Flutter Portion
7:18 - Creating Widget Extension in Xcode
15:40 - Building & Demoing Application
17:38 - Flutter Code Cleanup
Рекомендации по теме
Комментарии
Автор

yeah, he is making awesome videos keep going...

Uplift-foryou
Автор

Bro do more ios Widget or Ios background task videos please

dadebaygurbanow
Автор

what if I want to get my shared preferences values from flutter without pressing any button from flutter, is it possible?

malikTaha
Автор

Great tutorial, thanks!!
It works well, but when i click to widget to launch the app, it always crashes
Any idea how to solve error about NSInvalidArgumentException, nil error?

*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[__NSPlaceholderDictionary attempt to insert nil object from objects[0]'
*** First throw call stack:
(0x1b7f04e38 0x1b108f8d8 0x1b80aa078 0x1b80b53ac 0x1b7f202b8 0x1b7f20158 0x100d9eae8 0x100d9efe8 0x103d679f0 0x103d489fc 0x100fb2164 0x1bae0cadc 0x1bb046798 0x1bb047338 0x1ba8cfb1c 0x1ba8cfe3c 0x1bae0c7b4 0x1bb046734 0x1bb0470e8 0x1bf51b460 0x1bf51cf88 0x1bf52b7f4 0x1bf52b444 0x1b7f956c8 0x1b7f7702c 0x1b7f7beb0 0x1f2171368 0x1ba471668 0x1ba4712cc 0x1007c2448 0x1d6874960)
libc++abi: terminating with uncaught exception of type NSException
* thread #1, queue = 'com.apple.main-thread', stop reason = signal SIGABRT
frame #0: + 8
libsystem_kernel.dylib`:
-> 0x1f5a1f674 <+8>: b.lo 0x1f5a1f694 ; <+40>
0x1f5a1f678 <+12>: pacibsp
0x1f5a1f67c <+16>: stp x29, x30, [sp, #-0x10]!
0x1f5a1f680 <+20>: mov x29, sp
Target 0: (Runner) stopped.
Lost connection to device.

woojinmath