#33 new: upload file to sftp from file picker

This commit is contained in:
lollipopkit
2023-06-02 21:51:39 +08:00
parent f0bf95a7d2
commit 8c25b5e60b
24 changed files with 258 additions and 174 deletions

View File

@@ -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,