-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9 from caseycrogers/v2
Refactored contributions to Prepare For V2
- Loading branch information
Showing
17 changed files
with
305 additions
and
613 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
export 'src/adaptive_gutter.dart'; | ||
export 'src/axis_aware_orientation.dart'; | ||
export 'src/gap.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'; | ||
export 'src/margin.dart'; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import 'package:flutter/material.dart'; | ||
|
||
import 'axis_aware_orientation.dart'; | ||
|
||
/// Creates a gap along the main axis of the nearest enclosing vertically or | ||
/// horizontally aligned widget (`Row`, `Column`, `Scrollable`, etc.). | ||
class Gap extends StatelessWidget { | ||
/// Creates a gap of the given [size]; | ||
const Gap({super.key, required this.size}); | ||
|
||
/// The size of the gap along the main axis of the nearest enclosing | ||
/// vertically or horizontally aligned multi child widget. | ||
final double size; | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
return AxisAwareOrientation( | ||
key: key, | ||
builder: (BuildContext context, Orientation orientation) { | ||
return SizedBox( | ||
width: orientation == Orientation.landscape ? size : null, | ||
height: orientation != Orientation.portrait ? null : size, | ||
); | ||
}, | ||
); | ||
} | ||
} |
Oops, something went wrong.