forked from eva/focus-flow
23 lines
579 B
Dart
23 lines
579 B
Dart
import 'package:flutter/material.dart';
|
|
|
|
import '../theme/focus_flow_tokens.dart';
|
|
|
|
class AppShell extends StatelessWidget {
|
|
const AppShell({required this.sidebar, required this.child, super.key});
|
|
|
|
final Widget sidebar;
|
|
final Widget child;
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return DecoratedBox(
|
|
decoration: const BoxDecoration(color: FocusFlowTokens.appBackground),
|
|
child: Row(
|
|
children: [
|
|
SizedBox(width: FocusFlowTokens.sidebarWidth, child: sidebar),
|
|
Expanded(child: child),
|
|
],
|
|
),
|
|
);
|
|
}
|
|
}
|