Animation API improvements (#21540)
This commit is contained in:
@@ -267,7 +267,7 @@ linter:
|
||||
throw 'failed to parse error message (read line number as $lineNumber; total number of lines is ${lines.length}): $error';
|
||||
}
|
||||
final Line actualLine = lines[lineNumber - 1];
|
||||
if (errorCode == 'unused_element') {
|
||||
if (errorCode == 'unused_element' || errorCode == 'unused_local_variable') {
|
||||
// We don't really care if sample code isn't used!
|
||||
} else if (actualLine == null) {
|
||||
if (errorCode == 'missing_identifier' && lineNumber > 1 && buffer[lineNumber - 2].endsWith(',')) {
|
||||
@@ -330,6 +330,9 @@ void processBlock(Line line, List<String> block, List<Section> sections) {
|
||||
sections.add(Section(line, 'Future<Null> expression$_expressionId() async { ', block.toList(), ' }'));
|
||||
} else if (block.first.startsWith('class ') || block.first.startsWith('enum ')) {
|
||||
sections.add(Section(line, null, block.toList(), null));
|
||||
} else if ((block.first.startsWith('_') || block.first.startsWith('final ')) && block.first.contains(' = ')) {
|
||||
_expressionId += 1;
|
||||
sections.add(Section(line, 'void expression$_expressionId() { ', block.toList(), ' }'));
|
||||
} else {
|
||||
final List<String> buffer = <String>[];
|
||||
int subblocks = 0;
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
<script async="" defer=""
|
||||
<script async="" defer=""
|
||||
src="//www.google.com/insights/consumersurveys/async_survey?site=i2bdmo2dzky7fqws25nicgx5f4">
|
||||
</script>
|
||||
</script>
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
// Override point for customization after application launch.
|
||||
FlutterViewController* controller = (FlutterViewController*)self.window.rootViewController;
|
||||
FlutterMethodChannel* flavorChannel = [FlutterMethodChannel methodChannelWithName:@"flavor" binaryMessenger:controller];
|
||||
|
||||
|
||||
[flavorChannel setMethodCallHandler:^(FlutterMethodCall *call, FlutterResult result) {
|
||||
NSString* flavor = (NSString*)[[NSBundle mainBundle].infoDictionary valueForKey:@"Flavor"];
|
||||
result(flavor);
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
|
||||
- (nullable UIViewController *)popViewControllerAnimated:(BOOL)animated {
|
||||
FlutterViewController* root = (FlutterViewController*)[self.viewControllers objectAtIndex:0];
|
||||
|
||||
|
||||
FlutterBasicMessageChannel* messageChannel =
|
||||
[FlutterBasicMessageChannel messageChannelWithName:@"navigation-test"
|
||||
binaryMessenger:root
|
||||
|
||||
Reference in New Issue
Block a user