mirror of
https://github.com/lollipopkit/flutter_server_box.git
synced 2025-12-17 23:34:24 +01:00
#33 new: upload file to sftp from file picker
This commit is contained in:
@@ -3,8 +3,13 @@ import 'package:flutter/material.dart';
|
||||
/// 渐隐渐显实现
|
||||
class FadeIn extends StatefulWidget {
|
||||
final Widget child;
|
||||
final Duration duration;
|
||||
|
||||
const FadeIn({Key? key, required this.child}) : super(key: key);
|
||||
const FadeIn({
|
||||
Key? key,
|
||||
required this.child,
|
||||
this.duration = const Duration(milliseconds: 377),
|
||||
}) : super(key: key);
|
||||
|
||||
@override
|
||||
_MyFadeInState createState() => _MyFadeInState();
|
||||
@@ -19,7 +24,7 @@ class _MyFadeInState extends State<FadeIn> with SingleTickerProviderStateMixin {
|
||||
super.initState();
|
||||
_controller = AnimationController(
|
||||
vsync: this,
|
||||
duration: const Duration(milliseconds: 377),
|
||||
duration: widget.duration,
|
||||
);
|
||||
_animation = Tween(
|
||||
begin: 0.0,
|
||||
|
||||
Reference in New Issue
Block a user