Skip to content

Commit

Permalink
Fix sizer widget class
Browse files Browse the repository at this point in the history
  • Loading branch information
TechnoUrmish committed Apr 21, 2021
1 parent 198ee68 commit 6502cbd
Show file tree
Hide file tree
Showing 6 changed files with 36 additions and 6 deletions.
12 changes: 12 additions & 0 deletions CHANGELOG.md
Expand Up @@ -108,3 +108,15 @@
## [2.0.9] - 20.04.2021.

* Fix multiplatform bug

## [2.0.10] - 20.04.2021.

* Fix multiplatform bug

## [2.0.11] - 20.04.2021.

* Fix multiplatform bug

## [2.0.12] - 20.04.2021.

* Fix sizer widget class
5 changes: 4 additions & 1 deletion README.md
Expand Up @@ -17,18 +17,21 @@ A flutter plugin for Easily make Flutter apps responsive. Automatically adapt

# Content

- [For Existing User](#existing-user)
- [Installation](#installation)
- [Parameters](#parameters)
- [Suggestion](#suggestion)
- [Note](#note)

# Existing User
## Hello Existing users, I have updated the package for supporting Flutter 2.0 and solving many bugs then Whenever you update 1.x.x to 2.x.x will be got many errors so please update the package with the new below code.

# Installation ⬇️
Add to pubspec.yaml.
```dart
dependencies:
...
sizer: ^2.0.9
sizer: ^2.0.12
```

# Parameters ⚙️
Expand Down
2 changes: 1 addition & 1 deletion lib/sizer.dart
Expand Up @@ -5,7 +5,7 @@
library sizer;

import 'package:flutter/widgets.dart';
import 'dart:io' show Platform;
import 'package:universal_io/io.dart' show Platform;
import 'package:flutter/foundation.dart' show kIsWeb;

part 'extension.dart';
Expand Down
6 changes: 3 additions & 3 deletions lib/widget.dart
Expand Up @@ -2,9 +2,9 @@ part of sizer;

/// Provides `Context`, `Orientation`, and `ScreenType` parameters to the builder function
typedef ResponsiveBuild = Widget Function(
BuildContext,
Orientation,
DeviceType,
BuildContext context,
Orientation orientation,
DeviceType deviceType,
);

/// A widget that gets the device's details like orientation and constraints
Expand Down
14 changes: 14 additions & 0 deletions pubspec.lock
Expand Up @@ -43,6 +43,13 @@ packages:
url: "https://pub.dartlang.org"
source: hosted
version: "1.15.0"
crypto:
dependency: transitive
description:
name: crypto
url: "https://pub.dartlang.org"
source: hosted
version: "3.0.1"
fake_async:
dependency: transitive
description:
Expand Down Expand Up @@ -135,6 +142,13 @@ packages:
url: "https://pub.dartlang.org"
source: hosted
version: "1.3.0"
universal_io:
dependency: "direct main"
description:
name: universal_io
url: "https://pub.dartlang.org"
source: hosted
version: "2.0.4"
vector_math:
dependency: transitive
description:
Expand Down
3 changes: 2 additions & 1 deletion pubspec.yaml
@@ -1,6 +1,6 @@
name: sizer
description: A flutter plugin for Easily make Flutter apps responsive. Automatically adapt UI to different screen sizes. Responsiveness made simple.
version: 2.0.9
version: 2.0.12
#author: Urmish Patel <urmishpatel9@gmail.com>
homepage: https://github.com/TechnoUrmish/Sizer

Expand All @@ -9,6 +9,7 @@ environment:
flutter: ">=1.17.0"

dependencies:
universal_io: ^2.0.4
flutter:
sdk: flutter

Expand Down

0 comments on commit 6502cbd

Please sign in to comment.