Initial commit
This commit is contained in:
parent
e46f792c49
commit
85cff9dba8
20 changed files with 663 additions and 0 deletions
20
lib/layout/abstractCenteredColumn.dart
Normal file
20
lib/layout/abstractCenteredColumn.dart
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
import 'package:flutter/material.dart';
|
||||
|
||||
abstract class AbstractCenteredColumn extends Column {
|
||||
AbstractCenteredColumn({
|
||||
Key key,
|
||||
MainAxisAlignment mainAxisAlignment,
|
||||
TextDirection textDirection,
|
||||
TextBaseline textBaseline,
|
||||
List<Widget> children: const <Widget>[],
|
||||
}) : super(
|
||||
children: children,
|
||||
key: key,
|
||||
mainAxisAlignment: mainAxisAlignment,
|
||||
mainAxisSize: MainAxisSize.max,
|
||||
crossAxisAlignment: CrossAxisAlignment.center,
|
||||
textDirection: textDirection,
|
||||
verticalDirection: VerticalDirection.down,
|
||||
textBaseline: textBaseline,
|
||||
);
|
||||
}
|
||||
20
lib/layout/abstractCenteredRow.dart
Normal file
20
lib/layout/abstractCenteredRow.dart
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
import 'package:flutter/material.dart';
|
||||
|
||||
abstract class AbstractCenteredRow extends Row {
|
||||
AbstractCenteredRow({
|
||||
Key key,
|
||||
TextDirection textDirection,
|
||||
TextBaseline textBaseline,
|
||||
mainAxisAlignment,
|
||||
List<Widget> children: const <Widget>[],
|
||||
}) : super(
|
||||
children: children,
|
||||
key: key,
|
||||
mainAxisAlignment: mainAxisAlignment,
|
||||
mainAxisSize: MainAxisSize.max,
|
||||
crossAxisAlignment: CrossAxisAlignment.center,
|
||||
textDirection: textDirection,
|
||||
verticalDirection: VerticalDirection.down,
|
||||
textBaseline: textBaseline,
|
||||
);
|
||||
}
|
||||
17
lib/layout/centeredColumn.dart
Normal file
17
lib/layout/centeredColumn.dart
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
import 'package:flutter/material.dart';
|
||||
import 'abstractCenteredColumn.dart';
|
||||
|
||||
class CenteredColumn extends AbstractCenteredColumn {
|
||||
CenteredColumn({
|
||||
Key key,
|
||||
TextDirection textDirection,
|
||||
TextBaseline textBaseline,
|
||||
List<Widget> children: const <Widget>[],
|
||||
}) : super(
|
||||
children: children,
|
||||
key: key,
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
textDirection: textDirection,
|
||||
textBaseline: textBaseline,
|
||||
);
|
||||
}
|
||||
17
lib/layout/centeredMaxWidget.dart
Normal file
17
lib/layout/centeredMaxWidget.dart
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
import 'package:flutter/material.dart';
|
||||
import 'centeredColumn.dart';
|
||||
import 'centeredRow.dart';
|
||||
|
||||
class CenteredMaxWidget extends CenteredColumn {
|
||||
CenteredMaxWidget({
|
||||
Key key,
|
||||
TextDirection textDirection,
|
||||
TextBaseline textBaseline,
|
||||
List<Widget> children: const <Widget>[],
|
||||
}) : super(
|
||||
children: <Widget>[new CenteredRow(children: children)],
|
||||
key: key,
|
||||
textDirection: textDirection,
|
||||
textBaseline: textBaseline,
|
||||
);
|
||||
}
|
||||
17
lib/layout/centeredRow.dart
Normal file
17
lib/layout/centeredRow.dart
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
import 'package:flutter/material.dart';
|
||||
import 'abstractCenteredRow.dart';
|
||||
|
||||
class CenteredRow extends AbstractCenteredRow {
|
||||
CenteredRow({
|
||||
Key key,
|
||||
TextDirection textDirection,
|
||||
TextBaseline textBaseline,
|
||||
List<Widget> children: const <Widget>[],
|
||||
}) : super(
|
||||
children: children,
|
||||
key: key,
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
textDirection: textDirection,
|
||||
textBaseline: textBaseline,
|
||||
);
|
||||
}
|
||||
17
lib/layout/centeredSpaceAroundColumn.dart
Normal file
17
lib/layout/centeredSpaceAroundColumn.dart
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
import 'package:flutter/material.dart';
|
||||
import 'abstractCenteredColumn.dart';
|
||||
|
||||
class CenteredSpaceAroundColumn extends AbstractCenteredColumn {
|
||||
CenteredSpaceAroundColumn({
|
||||
Key key,
|
||||
TextDirection textDirection,
|
||||
TextBaseline textBaseline,
|
||||
List<Widget> children: const <Widget>[],
|
||||
}) : super(
|
||||
children: children,
|
||||
key: key,
|
||||
mainAxisAlignment: MainAxisAlignment.spaceAround,
|
||||
textDirection: textDirection,
|
||||
textBaseline: textBaseline,
|
||||
);
|
||||
}
|
||||
17
lib/layout/centeredSpaceAroundRow.dart
Normal file
17
lib/layout/centeredSpaceAroundRow.dart
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
import 'package:flutter/material.dart';
|
||||
import 'abstractCenteredRow.dart';
|
||||
|
||||
class CenteredSpacedAroundRow extends AbstractCenteredRow {
|
||||
CenteredSpacedAroundRow({
|
||||
Key key,
|
||||
TextDirection textDirection,
|
||||
TextBaseline textBaseline,
|
||||
List<Widget> children: const <Widget>[],
|
||||
}) : super(
|
||||
children: children,
|
||||
key: key,
|
||||
mainAxisAlignment: MainAxisAlignment.spaceAround,
|
||||
textDirection: textDirection,
|
||||
textBaseline: textBaseline,
|
||||
);
|
||||
}
|
||||
17
lib/layout/centeredSpaceBetweenColumn.dart
Normal file
17
lib/layout/centeredSpaceBetweenColumn.dart
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
import 'package:flutter/material.dart';
|
||||
import 'abstractCenteredColumn.dart';
|
||||
|
||||
class CenteredSpaceBetweenColumn extends AbstractCenteredColumn {
|
||||
CenteredSpaceBetweenColumn({
|
||||
Key key,
|
||||
TextDirection textDirection,
|
||||
TextBaseline textBaseline,
|
||||
List<Widget> children: const <Widget>[],
|
||||
}) : super(
|
||||
children: children,
|
||||
key: key,
|
||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||
textDirection: textDirection,
|
||||
textBaseline: textBaseline,
|
||||
);
|
||||
}
|
||||
17
lib/layout/centeredSpaceBetweenRow.dart
Normal file
17
lib/layout/centeredSpaceBetweenRow.dart
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
import 'package:flutter/material.dart';
|
||||
import 'abstractCenteredRow.dart';
|
||||
|
||||
class CenteredSpacedBetweenRow extends AbstractCenteredRow {
|
||||
CenteredSpacedBetweenRow({
|
||||
Key key,
|
||||
TextDirection textDirection,
|
||||
TextBaseline textBaseline,
|
||||
List<Widget> children: const <Widget>[],
|
||||
}) : super(
|
||||
children: children,
|
||||
key: key,
|
||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||
textDirection: textDirection,
|
||||
textBaseline: textBaseline,
|
||||
);
|
||||
}
|
||||
17
lib/layout/centeredSpaceEvenlyColumn.dart
Normal file
17
lib/layout/centeredSpaceEvenlyColumn.dart
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
import 'package:flutter/material.dart';
|
||||
import 'abstractCenteredColumn.dart';
|
||||
|
||||
class CenteredSpaceEvenlyColumn extends AbstractCenteredColumn {
|
||||
CenteredSpaceEvenlyColumn({
|
||||
Key key,
|
||||
TextDirection textDirection,
|
||||
TextBaseline textBaseline,
|
||||
List<Widget> children: const <Widget>[],
|
||||
}) : super(
|
||||
children: children,
|
||||
key: key,
|
||||
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
|
||||
textDirection: textDirection,
|
||||
textBaseline: textBaseline,
|
||||
);
|
||||
}
|
||||
17
lib/layout/centeredSpaceEvenlyRow.dart
Normal file
17
lib/layout/centeredSpaceEvenlyRow.dart
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
import 'package:flutter/material.dart';
|
||||
import 'abstractCenteredRow.dart';
|
||||
|
||||
class CenteredSpacedEvenlyRow extends AbstractCenteredRow {
|
||||
CenteredSpacedEvenlyRow({
|
||||
Key key,
|
||||
TextDirection textDirection,
|
||||
TextBaseline textBaseline,
|
||||
List<Widget> children: const <Widget>[],
|
||||
}) : super(
|
||||
children: children,
|
||||
key: key,
|
||||
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
|
||||
textDirection: textDirection,
|
||||
textBaseline: textBaseline,
|
||||
);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue