第一次提交

This commit is contained in:
2025-06-27 20:20:51 +08:00
commit 33f86752de
153 changed files with 6743 additions and 0 deletions

13
lib/animations/slide.dart Normal file
View File

@@ -0,0 +1,13 @@
import 'package:flutter/material.dart';
import '../config.dart';
Widget slideTransition(BuildContext context, Animation<double> animation,
Animation<double> secondaryAnimation, Widget child) {
final tween = Tween<Offset>(begin: const Offset(1, 0), end: Offset.zero);
final curvedAnimation = CurvedAnimation(parent: animation, curve: AppAnimationConfig.slideCurve);
return SlideTransition(
position: tween.animate(curvedAnimation),
child: child,
);
}