这是我编写的move
命令函数的一个示例,该函数似乎不起作用
move /Y H:\Delivery\Alpha5\Video\Images\20180231.160641\ROW\H:\Delivery\Alpha5\Video\Batch002\Images\20180231.160641\
源文件路径已设置并且可以访问,目标文件路径仅上升到Batch002。
我还可以创建图像文件夹,在最后的时间戳(20180231.160641)中,它是非常独特的,并且每个批次(总共90个批次)中的每个文件夹都创建太多,所以我不认为{ {1}} cmd命令可以使文件夹有效地工作。
是否需要设置所有文件夹才能使move / Y命令起作用?
答案 0 :(得分:0)
您应该在代码中使用双引号。
尝试一下:
import 'package:flutter/material.dart';
class GradientButton extends StatefulWidget {
final String label;
final VoidCallback onPressed;
final Gradient gradient;
final double elevation;
final double height;
final TextStyle labelStyle;
GradientButton({
@required this.label,
@required this.onPressed,
@required this.gradient,
this.elevation,
this.height,
this.labelStyle,
}) : assert(label != null && onPressed != null),
assert(gradient != null);
@override
_GradientButtonState createState() => _GradientButtonState();
}
class _GradientButtonState extends State<GradientButton> with TickerProviderStateMixin {
AnimationController _animationController;
Animation _animation;
elevateUp(TapDownDetails details) {
_animationController.forward();
}
elevateDown() {
_animationController.reverse();
}
@override
void initState() {
super.initState();
_animationController = AnimationController(duration: Duration(milliseconds: 50), vsync: this);
_animation = Tween(begin: widget.elevation ?? 2.0, end: 12.0).animate(_animationController);
}
@override
Widget build(BuildContext context) {
return AnimatedBuilder(
animation: _animation,
builder: (c, w) {
return GestureDetector(
onTapDown: elevateUp,
onTapCancel: elevateDown,
onTapUp: (value) {
elevateDown();
widget.onPressed();
},
child: Card(
elevation: _animation.value,
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(25.0),
),
child: Container(
width: double.infinity,
height: widget.height ?? 50.0,
decoration: BoxDecoration(
gradient: widget.gradient,
borderRadius: BorderRadius.circular(25.0),
),
child: Center(
child: Text(
widget.label,
style: widget.labelStyle ?? Theme.of(context).textTheme.button,
),
),
),
),
);
},
);
}
}