Skip to content

Commit

Permalink
release nullsafety version
Browse files Browse the repository at this point in the history
  • Loading branch information
hnvn committed Jan 25, 2021
1 parent a6532a5 commit 6e47aca
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 33 deletions.
12 changes: 6 additions & 6 deletions example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class MyApp extends StatelessWidget {
Widget build(BuildContext context) {
return MaterialApp(
title: 'Shimmer',
routes: {
routes: <String, WidgetBuilder>{
'loading': (_) => LoadingListPage(),
'slide': (_) => SlideToUnlockPage(),
},
Expand All @@ -33,7 +33,7 @@ class _MyHomePageState extends State<MyHomePage> {
title: const Text('Shimmer'),
),
body: Column(
children: [
children: <Widget>[
ListTile(
title: const Text('Loading List'),
onTap: () => Navigator.of(context).pushNamed('loading'),
Expand Down Expand Up @@ -78,7 +78,7 @@ class _LoadingListPageState extends State<LoadingListPage> {
padding: const EdgeInsets.only(bottom: 8.0),
child: Row(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
children: <Widget>[
Container(
width: 48.0,
height: 48.0,
Expand Down Expand Up @@ -183,7 +183,7 @@ class SlideToUnlockPage extends StatelessWidget {
),
body: Stack(
fit: StackFit.expand,
children: [
children: <Widget>[
Image.asset(
'assets/images/background.jpg',
fit: BoxFit.cover,
Expand All @@ -197,7 +197,7 @@ class SlideToUnlockPage extends StatelessWidget {
children: <Widget>[
Text(
'${hour < 10 ? '0$hour' : '$hour'}:${minute < 10 ? '0$minute' : '$minute'}',
style: TextStyle(
style: const TextStyle(
fontSize: 60.0,
color: Colors.white,
),
Expand All @@ -207,7 +207,7 @@ class SlideToUnlockPage extends StatelessWidget {
),
Text(
'${days[day - 1]}, ${months[month - 1]} $dayInMonth',
style: TextStyle(fontSize: 24.0, color: Colors.white),
style: const TextStyle(fontSize: 24.0, color: Colors.white),
)
],
),
Expand Down
40 changes: 20 additions & 20 deletions example/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-nullsafety.3"
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-nullsafety.3"
characters:
dependency: transitive
description:
name: characters
url: "https://pub.dartlang.org"
source: hosted
version: "1.1.0-nullsafety.3"
version: "1.1.0-nullsafety.5"
charcode:
dependency: transitive
description:
name: charcode
url: "https://pub.dartlang.org"
source: hosted
version: "1.2.0-nullsafety.1"
version: "1.2.0-nullsafety.3"
clock:
dependency: transitive
description:
name: clock
url: "https://pub.dartlang.org"
source: hosted
version: "1.1.0-nullsafety.1"
version: "1.1.0-nullsafety.3"
collection:
dependency: transitive
description:
name: collection
url: "https://pub.dartlang.org"
source: hosted
version: "1.15.0-nullsafety.3"
version: "1.15.0-nullsafety.5"
cupertino_icons:
dependency: "direct main"
description:
Expand All @@ -56,7 +56,7 @@ packages:
name: fake_async
url: "https://pub.dartlang.org"
source: hosted
version: "1.2.0-nullsafety.1"
version: "1.2.0-nullsafety.3"
flutter:
dependency: "direct main"
description: flutter
Expand All @@ -73,28 +73,28 @@ packages:
name: matcher
url: "https://pub.dartlang.org"
source: hosted
version: "0.12.10-nullsafety.1"
version: "0.12.10-nullsafety.3"
meta:
dependency: transitive
description:
name: meta
url: "https://pub.dartlang.org"
source: hosted
version: "1.3.0-nullsafety.3"
version: "1.3.0-nullsafety.6"
path:
dependency: transitive
description:
name: path
url: "https://pub.dartlang.org"
source: hosted
version: "1.8.0-nullsafety.1"
version: "1.8.0-nullsafety.3"
shimmer:
dependency: "direct main"
description:
path: ".."
relative: true
source: path
version: "1.1.2"
version: "2.0.0-nullsafety.0"
sky_engine:
dependency: transitive
description: flutter
Expand All @@ -106,56 +106,56 @@ packages:
name: source_span
url: "https://pub.dartlang.org"
source: hosted
version: "1.8.0-nullsafety.2"
version: "1.8.0-nullsafety.4"
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-nullsafety.6"
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-nullsafety.3"
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-nullsafety.3"
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-nullsafety.3"
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-nullsafety.6"
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-nullsafety.5"
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-nullsafety.5"
sdks:
dart: ">=2.10.0-110 <2.11.0"
dart: ">=2.12.0-133.7.beta <3.0.0"
flutter: ">=1.9.1 <2.0.0"
8 changes: 4 additions & 4 deletions example/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Shimmer
name: shimmer_example
description: A new Flutter project.

# The following defines the version and build number for your application.
Expand All @@ -13,14 +13,14 @@ environment:
sdk: '>=2.10.0 <3.0.0'

dependencies:
cupertino_icons: ^0.1.2

flutter:
sdk: flutter

shimmer:
path: ..

# The following adds the Cupertino Icons font to your application.
# Use with the CupertinoIcons class for iOS style icons.
cupertino_icons: ^0.1.2

dev_dependencies:
flutter_test:
Expand Down
4 changes: 2 additions & 2 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
name: shimmer
description: A package provides an easy way to add shimmer effect in Flutter project
version: 1.1.2
version: 2.0.0-nullsafety.0
author: Hung Duy Ha <hunghd.yb@gmail.com>
contributors: Gregor Weber <The-Redhat>, Vasilliy Ditsyask <vasilich6107>
homepage: https://github.com/hnvn/flutter_shimmer

environment:
sdk: '>=2.12.0-133.2.beta <3.0.0'
sdk: '>=2.12.0-133.7.beta <3.0.0'
flutter: ^1.9.1

dependencies:
Expand Down
3 changes: 2 additions & 1 deletion test/shimmer_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ import 'package:flutter_test/flutter_test.dart';
import 'package:flutter/material.dart';

void main() {
testWidgets('Shimmer.fromColors() can be constructed', (tester) async {
testWidgets('Shimmer.fromColors() can be constructed',
(WidgetTester tester) async {
await tester.pumpWidget(Shimmer.fromColors(
child: Container(
width: 100.0,
Expand Down

0 comments on commit 6e47aca

Please sign in to comment.