36 lines
885 B
Dart
36 lines
885 B
Dart
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,
|
|
),
|
|
);
|
|
}
|
|
}
|