50 lines
1.4 KiB
Dart
50 lines
1.4 KiB
Dart
import 'package:app/config/theme/base/app_theme_ext.dart';
|
|
import 'package:flutter/material.dart';
|
|
import 'package:remixicon/remixicon.dart';
|
|
|
|
class Header extends StatelessWidget implements PreferredSizeWidget {
|
|
const Header({super.key});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Container(
|
|
color: Colors.white,
|
|
child: SafeArea(
|
|
child: Container(
|
|
padding: EdgeInsets.symmetric(horizontal: context.pagePadding),
|
|
height: preferredSize.height,
|
|
child: Row(
|
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
|
children: [
|
|
Column(
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
children: [
|
|
Text(
|
|
"学光自习室",
|
|
style: Theme.of(context).textTheme.titleSmall,
|
|
),
|
|
Text(
|
|
"在线陪伴、用心教学",
|
|
style: Theme.of(context).textTheme.labelMedium,
|
|
),
|
|
],
|
|
),
|
|
Row(
|
|
children: [
|
|
IconButton(
|
|
onPressed: () {},
|
|
icon: Icon(RemixIcons.user_line),
|
|
),
|
|
],
|
|
),
|
|
],
|
|
),
|
|
),
|
|
),
|
|
);
|
|
}
|
|
|
|
@override
|
|
Size get preferredSize => const Size.fromHeight(kToolbarHeight);
|
|
}
|