The-Agency/lib/ui/widgets/sidebar/app_header.dart

79 lines
No EOL
1.6 KiB
Dart

import "dart:io";
import "package:shadcn_flutter/shadcn_flutter.dart";
class AppHeader extends StatelessWidget {
const AppHeader({super.key});
@override
Widget build(BuildContext context) {
final theme = Theme.of(context);
return Container(
width: double.infinity,
decoration: BoxDecoration(
color: theme.colorScheme.background,
border: Border(
bottom: BorderSide(color: theme.colorScheme.border, width: 1),
),
),
child: IntrinsicHeight(
child: Row(
children: [
Padding(
padding: const EdgeInsets.only(left: 16, top: 8, bottom: 8),
child: _Logo(),
),
const Spacer(),
SizedBox(width: Platform.isMacOS ? 64 : 12),
],
),
),
);
}
}
class _Logo extends StatelessWidget {
const _Logo();
@override
Widget build(BuildContext context) {
final muted = Theme.of(context).colorScheme.mutedForeground;
return Column(
crossAxisAlignment: CrossAxisAlignment.start,
mainAxisSize: MainAxisSize.min,
children: [
Text(
"THE AGENCY",
style: TextStyle(
fontFamily: "monospace",
fontSize: 13,
height: 1,
fontWeight: FontWeight.w800,
letterSpacing: 1.5,
),
),
Text(
"by IMBENJI.NET LTD",
style: TextStyle(
fontFamily: "monospace",
fontSize: 10,
height: 1.4,
fontWeight: FontWeight.w600,
color: muted,
),
),
],
);
}
}