mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-18 16:16:14 +08:00
@@ -56,7 +56,9 @@ class Utils {
|
||||
}
|
||||
|
||||
static String buildShadersAbsolutePath(
|
||||
String baseDirectory, List<String> shaders) {
|
||||
String baseDirectory,
|
||||
List<String> shaders,
|
||||
) {
|
||||
List<String> absolutePaths = shaders.map((shader) {
|
||||
return path.join(baseDirectory, shader);
|
||||
}).toList();
|
||||
@@ -71,8 +73,12 @@ class Utils {
|
||||
static String generateRandomString(int length) {
|
||||
const characters = '0123456789abcdefghijklmnopqrstuvwxyz';
|
||||
|
||||
return String.fromCharCodes(Iterable.generate(length,
|
||||
(_) => characters.codeUnitAt(random.nextInt(characters.length))));
|
||||
return String.fromCharCodes(
|
||||
Iterable.generate(
|
||||
length,
|
||||
(_) => characters.codeUnitAt(random.nextInt(characters.length)),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
static void copyText(
|
||||
|
||||
Reference in New Issue
Block a user