feat: procedural season background with drifting petals
This commit is contained in:
Binary file not shown.
|
Before Width: | Height: | Size: 31 KiB After Width: | Height: | Size: 41 KiB |
@@ -0,0 +1,25 @@
|
||||
import 'package:block_seasons/game/models/season.dart';
|
||||
import 'package:block_seasons/ui/widgets/season_background.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_test/flutter_test.dart';
|
||||
|
||||
void main() {
|
||||
testWidgets('renders and settles with looping animations disabled',
|
||||
(tester) async {
|
||||
await tester.pumpWidget(const MaterialApp(
|
||||
home: SeasonBackground(theme: SeasonTheme.fallback),
|
||||
));
|
||||
await tester.pumpAndSettle();
|
||||
expect(find.byType(SeasonBackground), findsOneWidget);
|
||||
});
|
||||
|
||||
testWidgets('particleType none still renders', (tester) async {
|
||||
await tester.pumpWidget(const MaterialApp(
|
||||
home: SeasonBackground(
|
||||
theme: SeasonTheme(particleType: 'none'),
|
||||
),
|
||||
));
|
||||
await tester.pumpAndSettle();
|
||||
expect(find.byType(CustomPaint), findsWidgets);
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user