Skip to content

Commit

Permalink
v1.0.0 #39
Browse files Browse the repository at this point in the history
  • Loading branch information
jogboms authored Mar 5, 2021
2 parents 0a717af + 1ac247e commit e2e80ad
Show file tree
Hide file tree
Showing 11 changed files with 47 additions and 37 deletions.
5 changes: 3 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
## [0.0.1] - TODO: Add release date.
## [1.0.0]

* TODO: Describe initial release.
- Improve network and wifi detection
- Initial stable release
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ A tidy utility to handle offline/online connectivity like a Boss. It provides su

```yaml
dependencies:
flutter_offline: "^0.3.0"
flutter_offline: "^1.0.0"
```
### ⚡️ Import
Expand Down
2 changes: 1 addition & 1 deletion example/.flutter-plugins-dependencies
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"connectivity","path":"/home/bsutton/.pub-cache/hosted/pub.dartlang.org/connectivity-2.0.2/","dependencies":[]},{"name":"wifi_info_flutter","path":"/home/bsutton/.pub-cache/hosted/pub.dartlang.org/wifi_info_flutter-1.0.4/","dependencies":[]}],"android":[{"name":"connectivity","path":"/home/bsutton/.pub-cache/hosted/pub.dartlang.org/connectivity-2.0.2/","dependencies":[]},{"name":"wifi_info_flutter","path":"/home/bsutton/.pub-cache/hosted/pub.dartlang.org/wifi_info_flutter-1.0.4/","dependencies":[]}],"macos":[{"name":"connectivity_macos","path":"/home/bsutton/.pub-cache/hosted/pub.dartlang.org/connectivity_macos-0.1.0+7/","dependencies":[]}],"linux":[],"windows":[],"web":[{"name":"connectivity_for_web","path":"/home/bsutton/.pub-cache/hosted/pub.dartlang.org/connectivity_for_web-0.3.1+4/","dependencies":[]}]},"dependencyGraph":[{"name":"connectivity","dependencies":["connectivity_macos","connectivity_for_web"]},{"name":"connectivity_for_web","dependencies":[]},{"name":"connectivity_macos","dependencies":[]},{"name":"wifi_info_flutter","dependencies":[]}],"date_created":"2021-03-02 11:35:32.509145","version":"1.22.4"}
{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"connectivity","path":"/Users/jogboms/flutter/.pub-cache/hosted/pub.dartlang.org/connectivity-2.0.2/","dependencies":[]},{"name":"wifi_info_flutter","path":"/Users/jogboms/flutter/.pub-cache/hosted/pub.dartlang.org/wifi_info_flutter-1.0.4/","dependencies":[]}],"android":[{"name":"connectivity","path":"/Users/jogboms/flutter/.pub-cache/hosted/pub.dartlang.org/connectivity-2.0.2/","dependencies":[]},{"name":"wifi_info_flutter","path":"/Users/jogboms/flutter/.pub-cache/hosted/pub.dartlang.org/wifi_info_flutter-1.0.4/","dependencies":[]}],"macos":[{"name":"connectivity_macos","path":"/Users/jogboms/flutter/.pub-cache/hosted/pub.dartlang.org/connectivity_macos-0.1.0+7/","dependencies":[]}],"linux":[],"windows":[],"web":[{"name":"connectivity_for_web","path":"/Users/jogboms/flutter/.pub-cache/hosted/pub.dartlang.org/connectivity_for_web-0.3.1+4/","dependencies":[]}]},"dependencyGraph":[{"name":"connectivity","dependencies":["connectivity_macos","connectivity_for_web"]},{"name":"connectivity_for_web","dependencies":[]},{"name":"connectivity_macos","dependencies":[]},{"name":"wifi_info_flutter","dependencies":[]}],"date_created":"2021-03-05 06:20:56.934344","version":"2.1.0-10.0.pre"}
2 changes: 1 addition & 1 deletion example/lib/demo_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class DemoPage extends StatelessWidget {
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text("Offline Demo"),
title: Text('Offline Demo'),
),
body: child,
);
Expand Down
12 changes: 6 additions & 6 deletions example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -18,23 +18,23 @@ class MyApp extends StatelessWidget {
return Column(
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
RaisedButton(
child: Text("Demo 1"),
ElevatedButton(
onPressed: () {
navigate(context, Demo1());
},
child: Text('Demo 1'),
),
RaisedButton(
child: Text("Demo 2"),
ElevatedButton(
onPressed: () {
navigate(context, Demo2());
},
child: Text('Demo 2'),
),
RaisedButton(
child: Text("Demo 3"),
ElevatedButton(
onPressed: () {
navigate(context, Demo3());
},
child: Text('Demo 3'),
),
],
);
Expand Down
2 changes: 1 addition & 1 deletion example/lib/widgets/demo_1.dart
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class Demo1 extends StatelessWidget {
ConnectivityResult connectivity,
Widget child,
) {
final bool connected = connectivity != ConnectivityResult.none;
final connected = connectivity != ConnectivityResult.none;
return Stack(
fit: StackFit.expand,
children: [
Expand Down
2 changes: 1 addition & 1 deletion example/lib/widgets/demo_2.dart
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class Demo2 extends StatelessWidget {
color: Colors.white,
child: Center(
child: Text(
"Oops, \n\nNow we are Offline!",
'Oops, \n\nNow we are Offline!',
style: TextStyle(color: Colors.black),
),
),
Expand Down
2 changes: 1 addition & 1 deletion example/lib/widgets/demo_3.dart
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class Demo3 extends StatelessWidget {
color: Colors.white70,
child: Center(
child: Text(
"Oops, \n\nWe experienced a Delayed Offline!",
'Oops, \n\nWe experienced a Delayed Offline!',
style: TextStyle(color: Colors.black),
),
),
Expand Down
5 changes: 4 additions & 1 deletion example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@ name: example
description: A new Flutter project.
version: 1.0.0+1

publish_to: none

environment:
sdk: ">=2.0.0-dev.68.0 <3.0.0"
sdk: ">=2.0.0 <3.0.0"

dependencies:
flutter:
Expand All @@ -14,6 +16,7 @@ dependencies:
dev_dependencies:
flutter_test:
sdk: flutter
pedantic: ^1.9.0

flutter:
uses-material-design: true
47 changes: 27 additions & 20 deletions pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7,42 +7,42 @@ packages:
name: async
url: "https://pub.dartlang.org"
source: hosted
version: "2.5.0-nullsafety.1"
version: "2.5.0"
boolean_selector:
dependency: transitive
description:
name: boolean_selector
url: "https://pub.dartlang.org"
source: hosted
version: "2.1.0-nullsafety.1"
version: "2.1.0"
characters:
dependency: transitive
description:
name: characters
url: "https://pub.dartlang.org"
source: hosted
version: "1.1.0-nullsafety.3"
version: "1.1.0"
charcode:
dependency: transitive
description:
name: charcode
url: "https://pub.dartlang.org"
source: hosted
version: "1.2.0-nullsafety.1"
version: "1.2.0"
clock:
dependency: transitive
description:
name: clock
url: "https://pub.dartlang.org"
source: hosted
version: "1.1.0-nullsafety.1"
version: "1.1.0"
collection:
dependency: transitive
description:
name: collection
url: "https://pub.dartlang.org"
source: hosted
version: "1.15.0-nullsafety.3"
version: "1.15.0"
connectivity:
dependency: "direct main"
description:
Expand Down Expand Up @@ -77,7 +77,7 @@ packages:
name: fake_async
url: "https://pub.dartlang.org"
source: hosted
version: "1.2.0-nullsafety.1"
version: "1.2.0"
flutter:
dependency: "direct main"
description: flutter
Expand All @@ -93,27 +93,34 @@ packages:
description: flutter
source: sdk
version: "0.0.0"
js:
dependency: transitive
description:
name: js
url: "https://pub.dartlang.org"
source: hosted
version: "0.6.3"
matcher:
dependency: transitive
description:
name: matcher
url: "https://pub.dartlang.org"
source: hosted
version: "0.12.10-nullsafety.1"
version: "0.12.10"
meta:
dependency: transitive
description:
name: meta
url: "https://pub.dartlang.org"
source: hosted
version: "1.3.0-nullsafety.3"
version: "1.3.0"
path:
dependency: transitive
description:
name: path
url: "https://pub.dartlang.org"
source: hosted
version: "1.8.0-nullsafety.1"
version: "1.8.0"
pedantic:
dependency: "direct dev"
description:
Expand All @@ -139,56 +146,56 @@ packages:
name: source_span
url: "https://pub.dartlang.org"
source: hosted
version: "1.8.0-nullsafety.2"
version: "1.8.1"
stack_trace:
dependency: transitive
description:
name: stack_trace
url: "https://pub.dartlang.org"
source: hosted
version: "1.10.0-nullsafety.1"
version: "1.10.0"
stream_channel:
dependency: transitive
description:
name: stream_channel
url: "https://pub.dartlang.org"
source: hosted
version: "2.1.0-nullsafety.1"
version: "2.1.0"
string_scanner:
dependency: transitive
description:
name: string_scanner
url: "https://pub.dartlang.org"
source: hosted
version: "1.1.0-nullsafety.1"
version: "1.1.0"
term_glyph:
dependency: transitive
description:
name: term_glyph
url: "https://pub.dartlang.org"
source: hosted
version: "1.2.0-nullsafety.1"
version: "1.2.0"
test_api:
dependency: transitive
description:
name: test_api
url: "https://pub.dartlang.org"
source: hosted
version: "0.2.19-nullsafety.2"
version: "0.2.19"
typed_data:
dependency: transitive
description:
name: typed_data
url: "https://pub.dartlang.org"
source: hosted
version: "1.3.0-nullsafety.3"
version: "1.3.0"
vector_math:
dependency: transitive
description:
name: vector_math
url: "https://pub.dartlang.org"
source: hosted
version: "2.1.0-nullsafety.3"
version: "2.1.0"
wifi_info_flutter:
dependency: "direct main"
description:
Expand All @@ -204,5 +211,5 @@ packages:
source: hosted
version: "1.0.0"
sdks:
dart: ">=2.10.0-110 <2.11.0"
flutter: ">=1.20.0 <2.0.0"
dart: ">=2.12.0-0.0 <3.0.0"
flutter: ">=1.20.0"
3 changes: 1 addition & 2 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
name: flutter_offline
description: A tidy utility to handle offline/online connectivity like a Boss.
version: 0.3.0
author: Jeremiah Ogbomo <[email protected]>
version: 1.0.0
homepage: https://github.com/jogboms/flutter_offline

environment:
Expand Down

0 comments on commit e2e80ad

Please sign in to comment.