Fixes #13
Showing 1 of 5 files from the diff.
lib/src/main.dart
changed.
Other files ignored by Codecov
test/flutter_offline_test.dart
has changed.
pubspec.lock
has changed.
README.md
has changed.
pubspec.yaml
has changed.
@@ -101,12 +101,12 @@
Loading
101 | 101 | ) { |
|
102 | 102 | final child = widget.child ?? widget.builder(context); |
|
103 | 103 | if (!snapshot.hasData && !snapshot.hasError) { |
|
104 | - | return SizedBox(); |
|
104 | + | return const SizedBox(); |
|
105 | 105 | } else if (snapshot.hasError) { |
|
106 | 106 | if (widget.errorBuilder != null) { |
|
107 | 107 | return widget.errorBuilder(context); |
|
108 | 108 | } |
|
109 | - | throw new OfflineBuilderError(snapshot.error); |
|
109 | + | throw OfflineBuilderError(snapshot.error); |
|
110 | 110 | } |
|
111 | 111 | return widget.connectivityBuilder(context, snapshot.data, child); |
|
112 | 112 | }, |
Files | Coverage |
---|---|
lib/src | 100.00% |
Project Totals (2 files) | 100.00% |
48.1
TRAVIS_OS_NAME=osx
47.1
TRAVIS_OS_NAME=osx
50.1
TRAVIS_OS_NAME=osx
49.1
TRAVIS_OS_NAME=osx
52.1
TRAVIS_OS_NAME=osx
51.1
TRAVIS_OS_NAME=osx
53.1
TRAVIS_OS_NAME=osx
37.1
TRAVIS_OS_NAME=osx
36.1
TRAVIS_OS_NAME=osx
40.1
TRAVIS_OS_NAME=osx
39.1
TRAVIS_OS_NAME=osx
42.1
TRAVIS_OS_NAME=osx
41.1
TRAVIS_OS_NAME=osx
44.1
TRAVIS_OS_NAME=osx
43.1
TRAVIS_OS_NAME=osx
46.1
TRAVIS_OS_NAME=osx
45.1
TRAVIS_OS_NAME=osx
Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file.
The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files.
The size and color of each slice is representing the number of statements and the coverage, respectively.