dreampad/lib/app/shared/widgets/sequentially_show_up_widget.dart

36 lines
672 B
Dart
Raw Normal View History

2023-12-01 20:45:31 +08:00
import 'package:flutter/material.dart';
class SequentiallyShowUpScope extends StatelessWidget {
static SequentiallyShowUpScope of(BuildContext context) => context.findAncestorWidgetOfExactType()!;
const SequentiallyShowUpScope({
super.key,
required this.child,
});
final Widget child;
@override
Widget build(BuildContext context) {
return child;
}
}
class SequentiallyShowUp extends StatelessWidget {
const SequentiallyShowUp({
super.key,
required this.child,
required this.sequence,
});
final Widget child;
final int sequence;
@override
Widget build(BuildContext context) {
return const Placeholder();
}
}