Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Padding implementation #7

Closed
wants to merge 13 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ jobs:
- name: Analyze static code
run: dart analyze

# - name: Run tests
# run: flutter test --no-pub --coverage
- name: Run tests
run: flutter test --no-pub --coverage

- name: Check publish warnings
run: dart pub publish --dry-run
Expand Down
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@
- Add extension to add Gutter on Lists
- Migrate to `flutter_adaptive_scaffold` to remove deprecated package
- Add `AdaptiveGutter` that switches `Gutter` size based on the current breakpoint
- Add `PaddingGutter` that adds material padding
- Add `PaddingGutter` that adds material padding to a child widget
- BREAKING CHANGE: Removal of `Gap`
- BREAKING CHANGE: Rename `Margin` to `GutterMargin`

## [1.0.3] - 07/27/2024

Expand Down
4 changes: 4 additions & 0 deletions example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@ class _MyHomePageState extends State<MyHomePage> {
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
// const GutterPadding.all(
// value: Gutter.medium(),
// child: ColoredBox(color: Colors.blue, child: Text('Child')),
// ),
const Text('Button tapped'),
const Gutter.small(),
Text(
Expand Down
29 changes: 0 additions & 29 deletions example/test/widget_test.dart

This file was deleted.

6 changes: 4 additions & 2 deletions lib/flutter_gutter.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
export 'src/adaptive_gutter.dart';
export 'src/axis_aware.dart';
export 'src/breakpoints_utils.dart';
export 'src/axis_aware_orientation.dart';
export 'src/gutter.dart';
export 'src/gutter_configuration.dart';
export 'src/gutter_extensions.dart';
export 'src/gutter_margin.dart';
export 'src/gutter_type.dart';
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import 'package:flutter/material.dart';

import '../flutter_gutter.dart';

/// Axis-aware widget that provides the orientation.
class AxisAware extends StatelessWidget {
/// Creates a new [AxisAware] widget.
const AxisAware({
class AxisAwareOrientation extends StatelessWidget {
/// Creates a new [AxisAwareOrientation] widget.
const AxisAwareOrientation({
super.key,
required this.builder,
});
Expand Down
62 changes: 0 additions & 62 deletions lib/src/breakpoints_utils.dart

This file was deleted.

Loading
Loading