Coder Social home page Coder Social logo

fasky-software / flutter_widgetkit Goto Github PK

View Code? Open in Web Editor NEW
254.0 8.0 23.0 378 KB

Flutter library for iOS Widgets Extensions. Integrate a Widget into your App πŸπŸ“±

License: MIT License

Swift 43.38% Ruby 15.31% Objective-C 5.17% Dart 36.14%
flutter ios-widget widget-extension ios14-widget ios14

flutter_widgetkit's People

Contributors

nilsreichardt avatar throwjojo avatar tomladder avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

flutter_widgetkit's Issues

Update Widget invalid

ios 14.6 iphoneXR Update Widget invalid!No Data found! Go to the Flutter App

iOS 15.2 Widget flickering

I am building a simple widget following your blog: https://itnext.io/develop-an-ios-14-widget-in-flutter-with-swiftui-e98eaff2c606

I use almost exactly the same code, but after installed, the widget sometimes flickering(Also, caused another widget flickering). I don't see any patterns, but I captured some logs from XCode that might be related.

2022-01-10 19:17:36.728257-0800 Runner[9972:877508] [widget] WidgetCenter connection interrupted.
2022-01-10 19:17:45.321013-0800 Runner[9972:876637] [connection] nw_read_request_report [C10] Receive failed with error "Software caused connection abort"

Could you please advise what to do?

How to debug the widget real-time?

Hey!

Sorry for the question, but how can I debug or test this? For example, I am writing code on the flutter side and run the app, but I want to debug the widget and see the information coming to the widget and debug it. How can I achieve this? I have tried running the project on XCode but nothing happens

List Widget

Hello

Excellent package! I tired your example and is working perfectly

Now the question is how we can send a list of data and how we can change the code in swift?

Thanks
Evripides

Build Failed

hello

When I am trying to build for ios I get the following error

`Automatically signing iOS for device deployment using specified development team
in Xcode project: TYR8M23SD7
Running Xcode build...
Xcode build done. 8.8s
Failed to build iOS app
Error output from Xcode build:
↳
** BUILD FAILED **

Xcode's output:
↳
/Users/mac/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_wi
dgetkit-1.0.0/ios/Classes/SwiftFlutterWidgetkitPlugin.swift:15:9: error:
cannot find 'WidgetCenter' in scope
WidgetCenter.shared.reloadAllTimelines()
^~~~~~~~~~~~
/Users/mac/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_wi
dgetkit-1.0.0/ios/Classes/SwiftFlutterWidgetkitPlugin.swift:23:11: error:
cannot find 'WidgetCenter' in scope
WidgetCenter.shared.reloadTimelines(ofKind: ofKind)
^~~~~~~~~~~~
/Users/mac/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_wi
dgetkit-1.0.0/ios/Classes/SwiftFlutterWidgetkitPlugin.swift:58:36: warning:
conditional cast from 'Any?' to 'Any' always succeeds
let value = args["value"] as? Any {
^
Command CompileSwift failed with a nonzero exit code
Command CompileSwift failed with a nonzero exit code
note: Using new build system
note: Building targets in parallel
note: Planning build
note: Constructing build description
warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to
8.0, but the range of supported deployment target versions is 9.0 to
14.1.99. (in target 'flutter_widgetkit' from project 'Pods')
warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to
8.0, but the range of supported deployment target versions is 9.0 to
14.1.99. (in target 'Flutter' from project 'Pods')

It appears that your application still contains the default signing identifier.
Try replacing 'com.example' with your signing id in Xcode:
open ios/Runner.xcworkspace
Encountered error while building for device.`

deleteItem / removeItem missing

At first: Thank you soo much for this awesome Plugin! Very good job!

But I am missing the remove/delete function in Flutter. I can get and set items, but not deleting a key/value pair from UserDefaults.

Is that possible?

best regards
Rebar :)

Update widget background

Hello

Can we update the widget in the backround (without opening app)

I tried with workmanager but is not working

When I click widget, error occurs: NSInvalidArgumentException, nil error

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 <+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.

Works in debug mode, does not in production

Hello there,
this is very strange and don't really know why.

The library works perfectly in debug mode (running in simulator or on an iphone)
when sending the app to the apple store via testflight nothing is returned from the library.

The appgroup in my app was already present before using this library.

Using the latest library version and latest xcode on Big Sur.

[βœ“] Flutter (Channel stable, 1.22.2, on macOS 11.0.1 20B50, locale it-IT)
 
[βœ“] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
[βœ“] Xcode - develop for iOS and macOS (Xcode 12.2)
[βœ“] Android Studio (version 4.1)
[βœ“] VS Code (version 1.51.1)
[!] Connected device
    ! No devices available
```

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.