Skip to content
This repository has been archived by the owner on Jun 6, 2021. It is now read-only.

Commit

Permalink
Merge pull request #1 from ishaan1995/hotfix/row_column_alignment
Browse files Browse the repository at this point in the history
[release] hotfix row column main, cross axis alignment issue
  • Loading branch information
ishaan1995 authored May 17, 2020
2 parents c220953 + 7430d38 commit 09d277d
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## [0.1.1] - 18/05/2020
* Hotfix: default value for main, cross axis alignment for row, column extensions.

## [0.1.0] - 18/05/2020
* First usagable release of widgetx package.
* Added text, list, align extensions.
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ In your flutter project add `widgetx` as a dependency in `pubspec.yaml`:
```yml
dependencies:
...
widgetx: ^0.1.0
widgetx: ^0.1.1

```
Expand Down
11 changes: 4 additions & 7 deletions lib/core/widgetx_extensions.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import 'package:flutter/material.dart';
import 'widgetx_helper.dart' show helperx;

/// WidgetX extensions to power our flutter widgets
/// Highly experimental. API not stable yet.
Expand Down Expand Up @@ -155,8 +154,8 @@ extension WidgetListX on List<Widget> {
return Row(
key: key,
children: this,
mainAxisAlignment: mainAxisAlignment,
crossAxisAlignment: crossAxisAlignment,
mainAxisAlignment: mainAxisAlignment ?? MainAxisAlignment.start,
crossAxisAlignment: crossAxisAlignment ?? CrossAxisAlignment.center,
);
}

Expand All @@ -168,15 +167,13 @@ extension WidgetListX on List<Widget> {
return Column(
key: key,
children: this,
mainAxisAlignment: mainAxisAlignment,
crossAxisAlignment: crossAxisAlignment,
mainAxisAlignment: mainAxisAlignment ?? MainAxisAlignment.start,
crossAxisAlignment: crossAxisAlignment ?? CrossAxisAlignment.center,
);
}

Stack stack({
Key key,
MainAxisAlignment mainAxisAlignment,
CrossAxisAlignment crossAxisAlignment,
}) {
return Stack(
key: key,
Expand Down
4 changes: 2 additions & 2 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: widgetx
description: Collection of useful extensions on Flutter's Widget Kit.
version: 0.1.0
description: Superpowers for your flutter widgets. Collection of useful extensions on Flutter's Widget Kit.
version: 0.1.1
homepage: https://github.com/ishaan1995/widgetx

environment:
Expand Down

0 comments on commit 09d277d

Please sign in to comment.