Update the examples/ README and associated fixes. (#9090)

This yak shave went as follows:

Fix https://github.com/flutter/flutter/issues/8795 by adding stocks to
the examples README.

Notice the layers entry in that README isn't quite right either.
Update that.

Check the layers/README file is worth pointing at.

Update the layers/README.

Let's run some of the layer tests to see if they still work.

Oops, need to update them to gradle.

Ok let's try running them again.

Oops, sector is broken.

Add a test for sector.

Fix sector. Find you need to add an assert to a const constructor.

Notice we need to turn const asserts on for the analyzer.

Notice the analysis_options files are out of sync with each other and
with the full list of lints.

Turn on the lints that should be on.

Fix the bugs that finds.
This commit is contained in:
Ian Hickson
2017-04-05 11:28:33 -07:00
committed by GitHub
parent c48f5f6d00
commit a52c7b470d
69 changed files with 1813 additions and 51 deletions

View File

@@ -2,12 +2,17 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:test/test.dart';
import 'package:flutter_test/flutter_test.dart';
import '../rendering/src/sector_layout.dart';
import '../widgets/sectors.dart';
void main() {
test('SectorConstraints', () {
expect(const SectorConstraints().isTight, isFalse);
});
testWidgets('Sector Sixes', (WidgetTester tester) {
tester.pumpWidget(new SectorApp());
});
}