Skip to content

Commit

Permalink
Corrected the typo in 'example' word'
Browse files Browse the repository at this point in the history
  • Loading branch information
csof3cen committed Sep 6, 2022
1 parent f9b7fd4 commit 45903b0
Show file tree
Hide file tree
Showing 129 changed files with 72 additions and 21 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class Hello extends StatelessWidget {
```
<br>

A more complete exemple
A more complete example
```dart
internetConnectivityBuilder(
interval: 1000,
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion exemple/pubspec.lock → example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ packages:
path: ".."
relative: true
source: path
version: "0.0.1"
version: "0.0.4"
lints:
dependency: transitive
description:
Expand Down
2 changes: 1 addition & 1 deletion exemple/pubspec.yaml → example/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: exemple
name: example
description: A new Flutter project.

# The following line prevents the package from being accidentally published to
Expand Down
67 changes: 67 additions & 0 deletions example/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
```dart
import 'package:flutter/material.dart';
import 'package:internet_connectivity_checker/internet_connectivity_checker.dart';
void main() => runApp(const App());
class App extends StatelessWidget {
const App({super.key});
@override
Widget build(BuildContext context) {
TextStyle kTextStyle =
Theme.of(context).textTheme.headline4!.copyWith(color: Colors.white);
return MaterialApp(
theme: ThemeData(primarySwatch: Colors.indigo),
home: Scaffold(
backgroundColor: const Color(0XFF000F1D),
appBar: AppBar(
centerTitle: true,
title: const Text("Internet Connectivity Checker"),
),
body: Center(
child: Container(
height: 300,
width: 300,
margin: const EdgeInsets.all(20),
child: internetConnectivityBuilder(
interval: 1000,
(ConnectivityStatus status) {
if (status == ConnectivityStatus.online) {
return Container(
decoration: BoxDecoration(
color: Colors.green,
borderRadius: BorderRadius.circular(15),
),
child: Center(child: Text("Online", style: kTextStyle)),
);
} else if (status == ConnectivityStatus.offine) {
return Container(
decoration: BoxDecoration(
color: Colors.red,
borderRadius: BorderRadius.circular(15),
),
child: Center(child: Text("Offline", style: kTextStyle)),
);
} else {
// status == ConnectivityStatus.offline
return const Center(
child: SizedBox(
width: 25,
height: 25,
child: CircularProgressIndicator(strokeWidth: 2),
),
);
}
},
),
),
),
),
);
}
}
```
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart';

import 'package:exemple/main.dart';
import 'package:example/main.dart';

void main() {
testWidgets('Counter increments smoke test', (WidgetTester tester) async {
Expand Down
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
16 changes: 0 additions & 16 deletions exemple/README.md

This file was deleted.

2 changes: 1 addition & 1 deletion lib/internet_connectivity_checker.dart
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class InternetConnectivity {
InternetConnectivity({
this.domainsToCheck = const [
'google.com',
'exemple.com',
'example.com',
'github.com',
'pub.dev',
],
Expand Down

0 comments on commit 45903b0

Please sign in to comment.