mirror of
https://github.com/lollipopkit/flutter_server_box.git
synced 2025-12-17 07:14:28 +01:00
21 lines
457 B
Dart
21 lines
457 B
Dart
part of 'home.dart';
|
|
|
|
final class _AppBar extends StatelessWidget implements PreferredSizeWidget {
|
|
final double paddingTop;
|
|
|
|
const _AppBar(this.paddingTop);
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return SizedBox(
|
|
height: paddingTop,
|
|
child: isIOS
|
|
? const Center(child: Text(BuildData.name, style: UIs.text15Bold))
|
|
: null,
|
|
);
|
|
}
|
|
|
|
@override
|
|
Size get preferredSize => Size.fromHeight(paddingTop);
|
|
}
|