1

I have the demo code for the Rikulo UXL ScrollView demo working with the Dart Editor.

However, the set-up seems cumbersome to me. For the example to build the .Dart file from the UXL file, (apparently) it needs to be named as: "ScrollView.uxl.xml". Can the build process or Dart Editor be configured and set-up to do a more streamlined workflow like:

ScrollView.uxl --> ScrollView.dart

As opposed to the current rule:

ScrollView.uxl.xml --> ScrollView.uxl.dart

It seem to me the solution seems to lie in the UXL builder:

import 'package:rikulo_uxl/uc.dart';

Solutions welcome.

Community
  • 1
  • 1
will
  • 4,799
  • 8
  • 54
  • 90

1 Answers1

0

The readme of the package seems to contain exactly the code you are looking for:

https://github.com/rikulo/uxl

add this to your build.dart file (in the directory where your pubspec.yaml file is

import 'package:rikulo_uxl/uc.dart' show build;

void main(List<String> arguments) {
    build(arguments);
}
Günter Zöchbauer
  • 623,577
  • 216
  • 2,003
  • 1,567
  • Unfortunately I thought that too. However this instruction ONLY builds: "--.uxl.xml", to: "---.uxl.dart". Which is the situation described in the question, that I'd prefer to eliminate. Thanks for pointing it out though, I should have mentioned that the question was describing *status quo* (as *documented*). – will Mar 29 '14 at 09:12