本文介绍了如何配置Dart编辑器来构建“.UXL”文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有


设置似乎麻烦我。对于从UXL文件构建.Dart文件的示例(显然),它需要命名为:ScrollView.uxl.xml。可以将构建过程或Dart编辑器配置和设置为执行更简化的工作流程,如:

  ScrollView.uxl  - > ScrollView.dart 

与当前规则相反:

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

在我看来,解决方案似乎在于UXL构建器: p>

import'package:rikulo_uxl / uc.dart';



解决方案

程序包自述文件似乎包含您正在寻找的代码:





将它添加到您的 build.dart 文件(在您的 pubspec.yaml file is

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

void main(List< String> arguments){
build(arguments);
}


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.

解决方案

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);
}

这篇关于如何配置Dart编辑器来构建“.UXL”文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-20 05:38