36 lines
672 B
Dart
36 lines
672 B
Dart
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();
|
|
}
|
|
}
|