luizmineo / node-webkit.dart Goto Github PK
View Code? Open in Web Editor NEWbuild node-webkit apps with Dart.
License: MIT License
build node-webkit apps with Dart.
License: MIT License
A possible addition to this library could be a dart:io script that compiles nw applications (eg. 'dart2js --minify', zipping into nw.exe/nw). This wouldn't be practical for a build.dart script, but the nw-app developer may want something like this for a 'publish.dart' script. The user could specify where they've placed the downloaded nw executable, or we could fetch the latest version from the git repo.
How do I go about passing in a function to the onclick handler of a MenuItem?
Here's what I tried
mainMenu.append(new gui.MenuItem (
label : "Quit",
onclick : (Event e) => gui.App.quit()
));
I'm getting this error
"Uncaught NoSuchMethodError : method not found: 'Symbol("call")'
Receiver: Instance of 'main_closure'
Arguments: []"
If this is the case, then each development step requires a dart2js to test in the node-webkit context? If so, I wonder if there is a way to utilize browserify in Dartium as a development environment for node-webkit dart applications.
When I follow your directions I end up with the node-webkit clouds and an error that says:
Uncaught node.js Error
TypeError: undefined is not a function
at dart.J.get$length$asx (file:///home/username/Development/test/build/web/index.dart.js:3629:41)
at dart.main (file:///home/username/Development/test/build/web/index.dart.js:3499:12)
at file:///home/username/Development/test/build/web/index.dart.js:4281:7
at init.currentScript (file:///home/username/Development/test/build/web/index.dart.js:4263:5)
at file:///home/username/Development/test/build/web/index.dart.js:4276:3
at file:///home/username/Development/test/build/web/index.dart.js:4286:3
new gui.Window.get().enterFullscreen();
calling this, causes following error:
Uncaught TypeError: Cannot read property 'constructor' of undefined"
Replicatable by writing a simple app containing just the above line
Any thoughts on changing the package name to match the new name for node-webkit, 'nw.js'?
Perhaps nw.dart?
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.