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

แชร์
ฝัง
  • เผยแพร่เมื่อ 5 ส.ค. 2024
  • 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:
    github.com/martusheff/flutter...
    Application Dependencies:
    Flutter Widget Kit:
    `flutter pub add flutter_widgetkit`
    pub.dev/packages/flutter_widg...
    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

ความคิดเห็น • 5

  • @hello_today0923
    @hello_today0923 ปีที่แล้ว

    Thx for great tutorial

  • @___fashaf_3980
    @___fashaf_3980 ปีที่แล้ว

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

  • @malikTaha425
    @malikTaha425 ปีที่แล้ว

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

  • @dadebaygurbanow6882
    @dadebaygurbanow6882 ปีที่แล้ว

    Bro do more ios Widget or Ios background task videos please

  • @woojinmath
    @woojinmath ปีที่แล้ว

    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 initWithObjects:forKeys:count:]: 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: 0x00000001f5a1f674 libsystem_kernel.dylib`__pthread_kill + 8
    libsystem_kernel.dylib`:
    -> 0x1f5a1f674 : b.lo 0x1f5a1f694 ;
    0x1f5a1f678 : pacibsp
    0x1f5a1f67c : stp x29, x30, [sp, #-0x10]!
    0x1f5a1f680 : mov x29, sp
    Target 0: (Runner) stopped.
    Lost connection to device.