First widget doesn't work in Dashcode but does work when deployed. Can I fix this? - osx-lion

I am brand new to Dashcode. I've created the textbook 'Dashboard Widget Tutorial', using the Countdown template. When I tell Dashcode to Run the widget, the widget window appears briefly. (It disappears after less than a second.) After the widget disappears, dashcode reports it as running. If I ask Dashcode to Pause, it acknowledges with the log message 'Pausing at the next opportunity'. There's no further feedback until I typically tell Dashcode to Stop after several minutes.
If I Deploy to Dashboard, the widget works OK. That's my current work-around, although I'm not sure how I'll fare when I want to debug widgets.
I am using Dashcode 3.0.5 on Lion (10.7.4).
There's an existing question on Stack Overflow First widget works in Dashcode but not when deployed. That is not what's happening to me, I have the 'opposite' problem.

I had the same problem. I guess version 3.0.5 is not working with Lion.
I solved downloading version 3.0.4 (DashCode for Xcode - March 2012)

Related

Flutter Web not Scrolling

I have created a basic website with graphs. I used a listview, a SingleChildScrollView and whenever I scroll, it zooms instead. It behaves like a mobile application that I have to click and drag to scroll.
I hope you know the command "flutter enable web". Maybe this is the reason for your web app behaves like mobile app. If not enabled web in your project then run that command.
Another scenario is;
Most of the flutter-web users facing the scrolling issue. But there is a temporary solution depends upon the number of items to be listed down. check out this youtube tutorial (https://youtu.be/qax_nOpgz7E), if the link is not working then search "lazy flutter performance" in youtube.
Reply back if this helps you to solve the issue or share that how did you resolved the issue.

Flutter printing invoice to usb printer in desktop app

I'm working on flutter desktop app and i need to print invoice to USB printer.
https://pub.flutter-io.cn/packages/printing
Currently i m using this plugin but not working, it only shows pdf view with loading indicator only. not loading the invoice view i created.
https://pub.dev/packages/flutter_usb_write. This is another plugin i've tried so far but when running the app is shows exception stated unable to find method implementation for detecting usb connected devices.
Please help me solving this issues or suggest me some another solution or plugin.
Thanx.
Flutter desktop has been launched as stable earlier this year. Perhaps you may want to try running a desktop build again using the latest Flutter version. Simply run flutter upgrade to update the Flutter version that you're running on. Currently, the printing plugin is one of the stable printer plugins on Flutter.
If the issue persists, please include the logs from the app. This should give indicators if the app is able to communicate with the printer or if there's any issues with the document that you're trying to print.

Flutter drag and drop inside UI in desktop application

Talking about a desktop application now, not mobile or web.
Is it any widget in Flutter that will allow, for example, drag a folder, drop it in the application UI, and the app will read for example the path to that file or folder?
I have been reading about Draggable and DragTarget in Flutter, but i do think they are used for that purpose.
NOTE: it might not exist a widget for that purpose, so a strategy on how to do that in Flutter will also be appreciated.
Assuming you're talking about dragging from outside the application, it's not currently supported; Flutter #30719 would be the issue to watch/upvote.
Depending on the specific platform you might be able to implement it with a plugin in the short term (if you are familiar with native development on that platform), but that would likely be more work than contributing an implementation to Flutter itself.
Flutter has a dependency to support such behavior now. Check this link
https://pub.dev/packages/desktop_drop

Cordova Keyboard Plugin doesn't work in ionic View

I've been trying to find an answer why the cordova keyboard plugin doesn't work in ionic view.
In the documentation it says it supports version 1.0.3.. The updated version is 1.0.4. I suspect that's the reason why the keyboard plugin doesn't work in ionic view. How can I downgrade to 1.0.3?
I realize this isn't a direct answer to your question, but...
Personally, I've found Ionic View, while a cool idea, to be mostly just a tool for basic previews. I've noticed all sorts of things don't work within Ionic View, such as overridden back button behavior, rendering inconsistencies, Crosswalk issues, etc.
I've done comparisons of Ionic View rendering directly with running the app on a device (using ionic run) and it very often has differences, even with minimally complex apps. That, to me, is unacceptable in a situation where you need valid prototypes. I previously wasted a lot of time trying to fix some issues that I found out were actually caused by Ionic View. I use the Cordova Keyboard plugin in one of my apps, and I was having issues with the event detection within Ionic View. Those issues didn't happen when I ran the app directly on my devices.
I've since switched to using Google Play Staged Rollouts to alpha/beta test my Ionic apps with multiple people/groups. Changes might not be reflected immediately (since updates need approval), but it will be exactly as the app is going to behave, and that might be the most important consideration of all.
However, if you're absolutely set on using Ionic View, you might consider filing this as an issue on their GitHub page.

Intel XDK build for Android not working

I am very new to Intel XDK.
To build my initial concepts, I made a very simple html 5 hello world page and it is working fine when running under EMULATE tab.
I build the app for Android, email to my address, download on mobile and installed it as well.
But after installation, when I start the application, it shows the first page with title "Html5 App Development" and then a blank White screen, that's it, I am not able to view my index.html page on the mobile.
What am I doing wrong here?
I hope that by now you have solved the problem but in case other people run into this thread. We had the same issue at times with our app until we tracked down the problem to the way the init and document ready gets fired.
Tweaking with the document ready features did the trick for us.
It sounds like you probably have it drawn at some point offscreen, due to the pixels rendered in the display vs actual pixels.
Try setting the viewport/screen size to handle this: https://gamedev.stackexchange.com/questions/70700/viewport-pixels-trouble-intel-xdk