Malarg commented on code in PR #24820:
URL: https://github.com/apache/beam/pull/24820#discussion_r1060582276
##########
playground/frontend/lib/pages/embedded_playground/widgets/embedded_actions.dart:
##########
@@ -40,19 +41,41 @@ class EmbeddedActions extends StatelessWidget {
@override
Widget build(BuildContext context) {
- return Padding(
- padding: const EdgeInsets.all(kMdSpacing),
- child: SizedBox(
- width: kTryPlaygroundButtonWidth,
- height: kTryPlaygroundButtonHeight,
- child: Consumer<PlaygroundController>(
- builder: (context, controller, child) => ElevatedButton.icon(
- icon: SvgPicture.asset(kLinkIconAsset),
- label: Text(AppLocalizations.of(context)!.tryInPlayground),
- onPressed: () => _openStandalonePlayground(controller),
- ),
+ return Row(
+ children: [
+ Consumer<PlaygroundController>(
+ builder: (_, controller, __) {
+ final selectedExample = controller.selectedExample;
+ final hasGithubLink = selectedExample?.urlVcs != null;
+ final hasColabLink = selectedExample?.urlNotebook != null;
+
+ return Row(
+ children: [
+ if (hasGithubLink)
+ LinkButton.github(selectedExample?.urlVcs ?? ''),
+ if (hasColabLink) ...[
+ const SizedBox(width: kMdSpacing),
Review Comment:
Paddings added
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]