fasky-software / flutter_widgetkit Goto Github PK
View Code? Open in Web Editor NEWFlutter library for iOS Widgets Extensions. Integrate a Widget into your App ππ±
License: MIT License
Flutter library for iOS Widgets Extensions. Integrate a Widget into your App ππ±
License: MIT License
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
__pthread_kill + 8 libsystem_kernel.dylib
:How could I add a background image to the widget?
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
```
have plan to support android home widget?
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.`
have plan to support mac widget?
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 :)
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?
Hello
Can we update the widget in the backround (without opening app)
I tried with workmanager but is not working
Hi to all,
is this library compatible also with lock screen widgets?
https://developer.apple.com/documentation/widgetkit/creating-lock-screen-widgets-and-watch-complications
there is some demo?
Thanks
ios 14.6 iphoneXR Update Widget invalidοΌNo Data found! Go to the Flutter App
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
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. πππ
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google β€οΈ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.