From 6bcde02e54f26ff189b7d43e36856c4d825a81f9 Mon Sep 17 00:00:00 2001 From: Angelo Silvestre Date: Thu, 28 Dec 2023 20:07:00 -0300 Subject: [PATCH] Updates for #1538 (#1717) --- .../example/lib/demos/example_editor/_toolbar.dart | 2 +- super_editor/test/infrastructure/popover_test.dart | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/super_editor/example/lib/demos/example_editor/_toolbar.dart b/super_editor/example/lib/demos/example_editor/_toolbar.dart index f80cf22969..bfd008ca8e 100644 --- a/super_editor/example/lib/demos/example_editor/_toolbar.dart +++ b/super_editor/example/lib/demos/example_editor/_toolbar.dart @@ -632,7 +632,7 @@ class _EditorToolbarState extends State { id: alignment.name, icon: _buildTextAlignIcon(alignment), ), - items: TextAlign.values + items: const [TextAlign.left, TextAlign.center, TextAlign.right, TextAlign.justify] .map( (alignment) => SuperEditorDemoIconItem( icon: _buildTextAlignIcon(alignment), diff --git a/super_editor/test/infrastructure/popover_test.dart b/super_editor/test/infrastructure/popover_test.dart index fd3a776fc4..1671738271 100644 --- a/super_editor/test/infrastructure/popover_test.dart +++ b/super_editor/test/infrastructure/popover_test.dart @@ -255,7 +255,8 @@ void main() { expect(popoverRect.bottom, lessThan(buttonRect.top)); }); - testWidgetsOnAllPlatforms('pins the popover to the bottom if there is not room below or above the button', + testWidgetsOnAllPlatforms( + 'pins the popover to the bottom of boundary if there is not room below or above the button', (tester) async { final boundaryKey = GlobalKey(); final buttonKey = GlobalKey(); @@ -416,8 +417,8 @@ void main() { expect(popoverRect.bottom, lessThan(buttonRect.top)); }); - testWidgetsOnAllPlatforms('pins the popover to the bottom if there is not room below or above the button', - (tester) async { + testWidgetsOnAllPlatforms( + 'pins the popover to the bottom of screen if there is not room below or above the button', (tester) async { final buttonKey = GlobalKey(); final popoverController = PopoverController();