You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@beam.apache.org by pa...@apache.org on 2022/11/30 19:10:43 UTC

[beam] branch master updated: pg_24284_now_closing_parenthesis on cancel button is visible (#24327)

This is an automated email from the ASF dual-hosted git repository.

pabloem pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/beam.git


The following commit(s) were added to refs/heads/master by this push:
     new a997f9c28bb pg_24284_now_closing_parenthesis on cancel button is visible (#24327)
a997f9c28bb is described below

commit a997f9c28bb4f86c09944e2ad31812db6e0b6723
Author: Dmitry Repin <mr...@gmail.com>
AuthorDate: Wed Nov 30 23:10:35 2022 +0400

    pg_24284_now_closing_parenthesis on cancel button is visible (#24327)
---
 .../playground_components/lib/src/widgets/run_button.dart      | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/playground/frontend/playground_components/lib/src/widgets/run_button.dart b/playground/frontend/playground_components/lib/src/widgets/run_button.dart
index 9aabaeb6b1f..66ac0224797 100644
--- a/playground/frontend/playground_components/lib/src/widgets/run_button.dart
+++ b/playground/frontend/playground_components/lib/src/widgets/run_button.dart
@@ -53,12 +53,17 @@ class RunButton extends StatelessWidget {
       child: ShortcutTooltip(
         shortcut: playgroundController.runShortcut,
         child: ElevatedButton.icon(
+          style: const ButtonStyle(
+            padding: MaterialStatePropertyAll(EdgeInsets.zero),
+          ),
           icon: isRunning
               ? SizedBox(
                   width: BeamIconSizes.small,
                   height: BeamIconSizes.small,
                   child: CircularProgressIndicator(
-                    color: Theme.of(context).extension<BeamThemeExtension>()!.primaryBackgroundTextColor,
+                    color: Theme.of(context)
+                        .extension<BeamThemeExtension>()!
+                        .primaryBackgroundTextColor,
                   ),
                 )
               : const Icon(Icons.play_arrow),
@@ -67,7 +72,8 @@ class RunButton extends StatelessWidget {
               builder: (context, AsyncSnapshot<int> state) {
                 final seconds = (state.data ?? 0) / kMsToSec;
                 final runText = 'widgets.runOrCancelButton.titles.run'.tr();
-                final cancelText = 'widgets.runOrCancelButton.titles.cancel'.tr();
+                final cancelText =
+                    'widgets.runOrCancelButton.titles.cancel'.tr();
                 final buttonText = isRunning ? cancelText : runText;
                 if (seconds > 0) {
                   return Text(