|
|
@ -11,26 +11,32 @@ class ComponentScreen extends StatelessWidget {
|
|
|
|
return Expanded(
|
|
|
|
return Expanded(
|
|
|
|
child: Padding(
|
|
|
|
child: Padding(
|
|
|
|
padding: const EdgeInsets.symmetric(horizontal: 10),
|
|
|
|
padding: const EdgeInsets.symmetric(horizontal: 10),
|
|
|
|
child: ListView(
|
|
|
|
child: Align(
|
|
|
|
shrinkWrap: true,
|
|
|
|
alignment: Alignment.topCenter,
|
|
|
|
children: [
|
|
|
|
child: SizedBox(
|
|
|
|
_colDivider,
|
|
|
|
width: _maxWidthConstraint,
|
|
|
|
_colDivider,
|
|
|
|
child: ListView(
|
|
|
|
const Buttons(),
|
|
|
|
shrinkWrap: true,
|
|
|
|
_colDivider,
|
|
|
|
children: [
|
|
|
|
const FloatingActionButtons(),
|
|
|
|
_colDivider,
|
|
|
|
_colDivider,
|
|
|
|
_colDivider,
|
|
|
|
const Cards(),
|
|
|
|
const Buttons(),
|
|
|
|
_colDivider,
|
|
|
|
_colDivider,
|
|
|
|
const Dialogs(),
|
|
|
|
const FloatingActionButtons(),
|
|
|
|
_colDivider,
|
|
|
|
_colDivider,
|
|
|
|
showNavBottomBar
|
|
|
|
const Cards(),
|
|
|
|
? const NavigationBars(
|
|
|
|
_colDivider,
|
|
|
|
selectedIndex: 0,
|
|
|
|
const Dialogs(),
|
|
|
|
isExampleBar: true,
|
|
|
|
_colDivider,
|
|
|
|
)
|
|
|
|
showNavBottomBar
|
|
|
|
: Container(),
|
|
|
|
? const NavigationBars(
|
|
|
|
],
|
|
|
|
selectedIndex: 0,
|
|
|
|
|
|
|
|
isExampleBar: true,
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
: Container(),
|
|
|
|
|
|
|
|
],
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
);
|
|
|
|
);
|
|
|
@ -40,6 +46,7 @@ class ComponentScreen extends StatelessWidget {
|
|
|
|
const _rowDivider = SizedBox(width: 10);
|
|
|
|
const _rowDivider = SizedBox(width: 10);
|
|
|
|
const _colDivider = SizedBox(height: 10);
|
|
|
|
const _colDivider = SizedBox(height: 10);
|
|
|
|
const double _cardWidth = 115;
|
|
|
|
const double _cardWidth = 115;
|
|
|
|
|
|
|
|
const double _maxWidthConstraint = 400;
|
|
|
|
|
|
|
|
|
|
|
|
void Function()? handlePressed(
|
|
|
|
void Function()? handlePressed(
|
|
|
|
BuildContext context, bool isDisabled, String buttonName) {
|
|
|
|
BuildContext context, bool isDisabled, String buttonName) {
|
|
|
@ -255,8 +262,7 @@ class Cards extends StatelessWidget {
|
|
|
|
alignment: Alignment.topRight,
|
|
|
|
alignment: Alignment.topRight,
|
|
|
|
child: Icon(Icons.more_vert),
|
|
|
|
child: Icon(Icons.more_vert),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
_colDivider,
|
|
|
|
SizedBox(height: 35),
|
|
|
|
_colDivider,
|
|
|
|
|
|
|
|
Align(
|
|
|
|
Align(
|
|
|
|
alignment: Alignment.bottomLeft,
|
|
|
|
alignment: Alignment.bottomLeft,
|
|
|
|
child: Text("Elevated"),
|
|
|
|
child: Text("Elevated"),
|
|
|
@ -279,8 +285,7 @@ class Cards extends StatelessWidget {
|
|
|
|
alignment: Alignment.topRight,
|
|
|
|
alignment: Alignment.topRight,
|
|
|
|
child: Icon(Icons.more_vert),
|
|
|
|
child: Icon(Icons.more_vert),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
_colDivider,
|
|
|
|
SizedBox(height: 35),
|
|
|
|
_colDivider,
|
|
|
|
|
|
|
|
Align(
|
|
|
|
Align(
|
|
|
|
alignment: Alignment.bottomLeft,
|
|
|
|
alignment: Alignment.bottomLeft,
|
|
|
|
child: Text("Filled"),
|
|
|
|
child: Text("Filled"),
|
|
|
@ -308,8 +313,7 @@ class Cards extends StatelessWidget {
|
|
|
|
alignment: Alignment.topRight,
|
|
|
|
alignment: Alignment.topRight,
|
|
|
|
child: Icon(Icons.more_vert),
|
|
|
|
child: Icon(Icons.more_vert),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
_colDivider,
|
|
|
|
SizedBox(height: 35),
|
|
|
|
_colDivider,
|
|
|
|
|
|
|
|
Align(
|
|
|
|
Align(
|
|
|
|
alignment: Alignment.bottomLeft,
|
|
|
|
alignment: Alignment.bottomLeft,
|
|
|
|
child: Text("Outlined"),
|
|
|
|
child: Text("Outlined"),
|
|
|
|