Files
SimpleCloudNotifier/flutter/lib/components/layout/scaffold.dart
T
Mikescher bb34f3b2b4
Build Docker and Deploy / Build Docker Container (push) Successful in 1m7s
Build Docker and Deploy / Run Unit-Tests (push) Failing after 7m34s
Build Docker and Deploy / Deploy to Server (push) Has been skipped
Flutter Fixes etc
2026-05-31 04:13:13 +02:00

39 lines
971 B
Dart

import 'package:flutter/material.dart';
import 'package:simplecloudnotifier/components/layout/app_bar.dart';
class SCNScaffold extends StatelessWidget {
const SCNScaffold({
Key? key,
required this.child,
this.title,
this.showThemeSwitch = true,
this.showSearch = true,
this.showShare = false,
this.onShare = null,
this.floatingActionButton = null,
}) : super(key: key);
final Widget child;
final Widget? floatingActionButton;
final String? title;
final bool showThemeSwitch;
final bool showSearch;
final bool showShare;
final void Function()? onShare;
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: SCNAppBar(
title: title,
showThemeSwitch: showThemeSwitch,
showSearch: showSearch,
showShare: showShare,
onShare: onShare ?? () {},
),
body: SafeArea(child: child),
floatingActionButton: floatingActionButton,
);
}
}