mirror of
https://github.com/flutter/samples.git
synced 2026-03-28 15:21:30 +00:00
Fix sample index deployment action (#862)
* Update sample index dependencies * Update to tuneup 0.3.8, update dependencies * Upgrade to null safety, lock sass version * fix analyzer warnings * Fix unit tests * Fix issues from upgrading to null safety
This commit is contained in:
@@ -23,7 +23,9 @@ String pascalCase(String input) {
|
||||
|
||||
String _fixCase(String input, String separator) =>
|
||||
input.replaceAllMapped(_upperCase, (match) {
|
||||
var lower = match.group(0).toLowerCase();
|
||||
var group = match.group(0);
|
||||
if (group == null) return input;
|
||||
var lower = group.toLowerCase();
|
||||
|
||||
if (match.start > 0) {
|
||||
lower = '$separator$lower';
|
||||
|
||||
Reference in New Issue
Block a user