28 lines
740 B
Dart
28 lines
740 B
Dart
import 'package:flutter/material.dart';
|
|
import 'package:superport/screens/common/theme_tailwind.dart';
|
|
|
|
// 페이지 타이틀 위젯
|
|
class PageTitle extends StatelessWidget {
|
|
final String title;
|
|
final Widget? rightWidget;
|
|
final double? width;
|
|
|
|
const PageTitle({Key? key, required this.title, this.rightWidget, this.width})
|
|
: super(key: key);
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Container(
|
|
width: width,
|
|
margin: const EdgeInsets.only(bottom: 16.0),
|
|
child: Row(
|
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
|
children: [
|
|
Text(title, style: AppThemeTailwind.headingStyle),
|
|
if (rightWidget != null) rightWidget!,
|
|
],
|
|
),
|
|
);
|
|
}
|
|
}
|