프로젝트 최초 커밋
This commit is contained in:
35
lib/screens/common/metronic_page_container.dart
Normal file
35
lib/screens/common/metronic_page_container.dart
Normal file
@@ -0,0 +1,35 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:superport/screens/common/theme_tailwind.dart';
|
||||
|
||||
/// 메트로닉 스타일 페이지 컨테이너 위젯 (SRP 분리)
|
||||
class MetronicPageContainer extends StatelessWidget {
|
||||
final String title;
|
||||
final Widget child;
|
||||
final List<Widget>? actions;
|
||||
final bool showBackButton;
|
||||
|
||||
const MetronicPageContainer({
|
||||
Key? key,
|
||||
required this.title,
|
||||
required this.child,
|
||||
this.actions,
|
||||
this.showBackButton = true,
|
||||
}) : super(key: key);
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Scaffold(
|
||||
appBar: AppBar(
|
||||
title: Text(title),
|
||||
automaticallyImplyLeading: showBackButton,
|
||||
actions: actions,
|
||||
elevation: 0,
|
||||
),
|
||||
body: Container(
|
||||
color: AppThemeTailwind.surface,
|
||||
padding: const EdgeInsets.all(16),
|
||||
child: child,
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user