Skip to content

Commit

Permalink
[release] v1.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
mym0404 committed Oct 20, 2023
1 parent be58200 commit 833c758
Show file tree
Hide file tree
Showing 7 changed files with 73 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 1.0.2

- Add `EmptyWidget`, `Full`, `FullWidth`, `FullHeight`

## 1.0.1

- Add topics
Expand Down
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,18 @@ Internally, These widgets use `SafeArea` widget and remove specified padding wit
- `SafeAreaRight`
- `SafeAreaBottom`

## Size Widgets

- `Full`
- `FullWidth`
- `FullHeight`

## Empty Widget

- `Empty`

## Code

```dart
PaddingAll(
24,
Expand Down
2 changes: 1 addition & 1 deletion example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ packages:
path: ".."
relative: true
source: path
version: "1.0.1"
version: "1.0.2"
path:
dependency: transitive
description:
Expand Down
2 changes: 2 additions & 0 deletions lib/padding_extra.dart
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
export 'src/empty_widget.dart';
export 'src/padding_widgets.dart';
export 'src/safe_area_widgets.dart';
export 'src/size_widgets.dart';
10 changes: 10 additions & 0 deletions lib/src/empty_widget.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import 'package:flutter/cupertino.dart';

class Empty extends StatelessWidget {
const Empty({super.key});

@override
Widget build(BuildContext context) {
return const ExcludeSemantics(child: SizedBox.shrink());
}
}
43 changes: 43 additions & 0 deletions lib/src/size_widgets.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
import 'package:flutter/widgets.dart';

class Full extends StatelessWidget {
const Full({
super.key,
required this.child,
});

final Widget child;

@override
Widget build(BuildContext context) {
return SizedBox.expand(child: child);
}
}

class FullHeight extends StatelessWidget {
const FullHeight({
super.key,
required this.child,
});

final Widget child;

@override
Widget build(BuildContext context) {
return SizedBox(height: double.infinity, child: child);
}
}

class FullWidth extends StatelessWidget {
const FullWidth({
super.key,
required this.child,
});

final Widget child;

@override
Widget build(BuildContext context) {
return SizedBox(width: double.infinity, child: child);
}
}
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: padding_extra
description: This package provides extra padding widgets
version: 1.0.1
version: 1.0.2
#homepage: https://mj-studio-library.github.io/flutter-local-file-preferences/
repository: https://github.com/mj-studio-library/padding_extra

Expand Down

0 comments on commit 833c758

Please sign in to comment.