Skip to content

incremented width in sizedBox to add some more padding. #2861

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Mar 1, 2024

Conversation

RishiMaersk
Copy link
Contributor

Issue:- add more right padding to the 'run' button #2840
link:- #2840

Added more padding to the run button in dart pad.

Copy link

google-cla bot commented Feb 21, 2024

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@@ -143,7 +143,7 @@ class _DartPadAppState extends State<DartPadApp> {
ColorScheme.fromSeed(seedColor: lightPrimaryColor).copyWith(
surface: lightSurfaceColor,
onSurface: Colors.black,
surfaceVariant: lightSurfaceVariantColor,
surfaceContainerHighest: Colors.blue,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why this change (and the similar one below)?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was getting an error in pipeline it was showing an error , which was exactly like this :-

info • 'surfaceVariant' is deprecated and shouldn't be used. Use surfaceContainerHighest instead. This feature was deprecated after v3.18.0-0.1.pre • lib/main.dart:146:11 • deprecated_member_use
info • 'surfaceVariant' is deprecated and shouldn't be used. Use surfaceContainerHighest instead. This feature was deprecated after v3.18.0-0.1.pre • lib/main.dart:167:11 • deprecated_member_use
info • 'surfaceVariant' is deprecated and shouldn't be used. Use surfaceContainerHighest instead. This feature was deprecated after v3.18.0-0.1.pre • lib/problems.dart:46:30 •

Copy link
Contributor Author

@RishiMaersk RishiMaersk Feb 28, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought may be changing it would resolve the error , shall I revert this changes but I'm not sure whether the pipeline would run successfully ?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd revert this change; the bots will check for any deprecation messages (and we can address in a separate PR if necessary).

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like we hit this in another PR as well: https://github.com/dart-lang/dart-pad/pull/2870/files#diff-ed60136a3d9ee7c71a9ed356332807808330f0cb99e3959050cfe26b087d6f8eR146. You could wait until that lands and then update your branch w/ the contents of main.

@@ -124,7 +124,7 @@ class RunButton extends StatelessWidget {
size: 20.0,
),
SizedBox(
width: 8.0,
width: 16.0,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

https://github.com/dart-lang/dart-pad/pull/2870/files#diff-ed60136a3d9ee7c71a9ed356332807808330f0cb99e3959050cfe26b087d6f8eR146 . I believe this PR has been merged now and I have resolved the merge conflicts wrt main.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that surfaceVariant check is again failing

Copy link
Member

@parlough parlough left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks so much for this fix and your patience on getting this landed. Looks good to me!

I added back the ignore comments for now as accounting for the new Material 3 palette changes might require some larger considerations and changes.

@parlough parlough merged commit 04935e2 into dart-lang:main Mar 1, 2024
@RishiMaersk
Copy link
Contributor Author

Thanks for giving me the opportunity to work , this happens to be my first open source contribution

@RishiMaersk RishiMaersk deleted the padding_to_run_button branch March 2, 2024 06:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants