mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-11-05 20:07:44 +00:00
33 lines
715 B
Dart
33 lines
715 B
Dart
|
import 'package:flutter/material.dart';
|
||
|
import 'package:stackwallet/utilities/cfcolors.dart';
|
||
|
|
||
|
class DesktopScaffold extends StatelessWidget {
|
||
|
const DesktopScaffold({
|
||
|
Key? key,
|
||
|
this.background = CFColors.background,
|
||
|
this.appBar,
|
||
|
this.body,
|
||
|
}) : super(key: key);
|
||
|
|
||
|
final Color background;
|
||
|
final Widget? appBar;
|
||
|
final Widget? body;
|
||
|
|
||
|
@override
|
||
|
Widget build(BuildContext context) {
|
||
|
return Material(
|
||
|
color: background,
|
||
|
child: Column(
|
||
|
crossAxisAlignment: CrossAxisAlignment.stretch,
|
||
|
children: [
|
||
|
if (appBar != null) appBar!,
|
||
|
if (body != null)
|
||
|
Expanded(
|
||
|
child: body!,
|
||
|
),
|
||
|
],
|
||
|
),
|
||
|
);
|
||
|
}
|
||
|
}
|