This commit is contained in:
2026-03-27 11:00:02 +03:00
parent 139abad52f
commit ebefa5a1bf
2 changed files with 2 additions and 35 deletions
@@ -35,7 +35,7 @@ class _FullScreenBlurOverlayState extends State<FullScreenBlurOverlay> {
Widget build(BuildContext context) { Widget build(BuildContext context) {
final mq = MediaQuery.of(widget.context); final mq = MediaQuery.of(widget.context);
final cardTop = mq.padding.top + kToolbarHeight + 16; final cardTop = mq.padding.top + kToolbarHeight + 16;
const cardHeight = 220.0; const cardHeight = 230.0;
final panelTop = cardTop + cardHeight + 65; final panelTop = cardTop + cardHeight + 65;
const panelHeight = 410.0; const panelHeight = 410.0;
@@ -65,8 +65,6 @@ class _FullScreenBlurOverlayState extends State<FullScreenBlurOverlay> {
widthFactor: 0.92, widthFactor: 0.92,
child: SizedBox( child: SizedBox(
height: cardHeight, height: cardHeight,
child: Align(
alignment: Alignment.topCenter,
child: Padding( child: Padding(
padding: const EdgeInsets.symmetric(horizontal: 8), padding: const EdgeInsets.symmetric(horizontal: 8),
child: Consumer( child: Consumer(
@@ -87,7 +85,6 @@ class _FullScreenBlurOverlayState extends State<FullScreenBlurOverlay> {
), ),
), ),
), ),
),
Positioned( Positioned(
top: panelTop, top: panelTop,
left: 20, left: 20,
-30
View File
@@ -1,30 +0,0 @@
// This is a basic Flutter widget test.
//
// To perform an interaction with a widget in your test, use the WidgetTester
// utility in the flutter_test package. For example, you can send tap and scroll
// gestures. You can also use WidgetTester to find child widgets in the widget
// tree, read text, and verify that the values of widget properties are correct.
import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:casha/main.dart';
void main() {
testWidgets('Counter increments smoke test', (WidgetTester tester) async {
// Build our app and trigger a frame.
await tester.pumpWidget(const MyApp());
// Verify that our counter starts at 0.
expect(find.text('0'), findsOneWidget);
expect(find.text('1'), findsNothing);
// Tap the '+' icon and trigger a frame.
await tester.tap(find.byIcon(Icons.add));
await tester.pump();
// Verify that our counter has incremented.
expect(find.text('0'), findsNothing);
expect(find.text('1'), findsOneWidget);
});
}