28 lines
661 B
Dart
28 lines
661 B
Dart
import 'package:flutter/material.dart';
|
|
|
|
class ProfileShell extends StatelessWidget {
|
|
final Widget child;
|
|
const ProfileShell({super.key, required this.child});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Scaffold(
|
|
appBar: AppBar(title: const Text('Profile')),
|
|
body: Row(
|
|
children: [
|
|
NavigationRail(
|
|
selectedIndex: 0,
|
|
destinations: const [
|
|
NavigationRailDestination(icon: Icon(Icons.dashboard_outlined), label: Text('Dashboard')),
|
|
],
|
|
),
|
|
const VerticalDivider(width: 1),
|
|
Expanded(child: child),
|
|
],
|
|
),
|
|
);
|
|
}
|
|
}
|
|
|
|
|