Skip to content
This repository was archived by the owner on May 1, 2024. It is now read-only.
This repository was archived by the owner on May 1, 2024. It is now read-only.

[Bug] No padding around text in a Toast or Snackbar #704

@davidortinau

Description

@davidortinau

Description

@VladislavAntonyuk how can I set some padding around my text? I see layout options in the platform code, but I don't see how I should influence the margins, padding, etc.

image

Basic Information

  • Version with issue: 1.0.0-pre6
    • iOS: 14.3

Reproduction Link

void Handle_Navigating(object sender, Xamarin.Forms.ShellNavigatingEventArgs e)
		{			
				var querystring = e.Target?.Location.OriginalString;
				if (querystring.IndexOf("?msg") > -1)
				{
					var substring = querystring.Substring(querystring.IndexOf("?"));
					var nvc = HttpUtility.ParseQueryString(substring);
					var options = new SnackBarOptions()
					{ 
						BackgroundColor = Color.FromHex("#CC0000"),
						MessageOptions = new MessageOptions
						{
							Message = nvc["msg"],
							Foreground = Color.White,
							Font =  Font.SystemFontOfSize(16)
						}
					};
					App.Current.MainPage.DisplayToastAsync(options);
				}
		}

Metadata

Metadata

Assignees

No one assigned

    Labels

    a/SnackbarbugSomething isn't working. Breaky break.questionFurther information is requested.s/unverifiedThis issue needs verification/reproduction by a team member. PRs cannot be accepted/merged.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions