What do you want to save?
Add Code snippet
New code examples
-
Other 2022-01-23 08:42:06
No MediaQuery widget ancestor found.
Its because, the showModalBottomSheet tries to access the ancestor of type MaterialApp from the given context. Use Builder widget to get new context with MaterialApp ancestor or Separate your MaterialAapp and Scaffold widgets into separate widgets. Us... Add solution -
C# 2022-01-23 06:41:06
how to generate random letters in C#
private static Random random = new Random(); public static string RandomString(int length) { const string chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"; return new string(Enumerable.Repeat(chars, length) .Select(s => s[random.N... Add solution -