mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-11-17 09:47:37 +00:00
32 lines
718 B
Dart
32 lines
718 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!,
|
|
),
|
|
],
|
|
),
|
|
);
|
|
}
|
|
}
|