Skip to content

Commit

Permalink
🐛 fixed fluttercandies#6.
Browse files Browse the repository at this point in the history
  • Loading branch information
iota9star committed Feb 4, 2020
1 parent 1a8417e commit fb74624
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions lib/src/route_generator.dart
Expand Up @@ -99,8 +99,12 @@ class RouteGenerator {
break;
case 'argumentNames:':
argumentNames = source
.replaceAll(RegExp("\\[|\\]|\'|\"|\\s|\\t"), '')
.split(',');
.replaceAll(RegExp('\\[|\\]'), '')
.split(',')
.map((it) => it.trim())
.where((it) => it.length > 2)
.map((it) => it.substring(1, it.length - 1))
.toList();
break;
case 'pageRouteType:':
pageRouteType = PageRouteType.values.firstWhere(
Expand Down

0 comments on commit fb74624

Please sign in to comment.