feat(life): 更新了瀑布流的数据获取和样式

This commit is contained in:
李东云
2022-02-21 18:50:14 +08:00
parent 2c81720df3
commit a89d53b87a
6 changed files with 181 additions and 75 deletions

View File

@@ -0,0 +1,42 @@
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
class LayoutScaffold extends StatelessWidget {
final AppBar appBar;
final Widget? body;
const LayoutScaffold({
Key? key,
required this.appBar,
this.body,
}) : super(key: key);
@override
Widget build(BuildContext context) {
Text title = appBar.title as Text;
print(appBar.preferredSize);
return Scaffold(
appBar: PreferredSize(
child: AppBar(
actions: appBar.actions,
leading: appBar.leading,
title: Text(
title.data ?? '',
style: const TextStyle(
fontSize: 25,
),
),
centerTitle: true,
bottom: appBar.bottom,
systemOverlayStyle: const SystemUiOverlayStyle(
statusBarColor: Colors.transparent, //设置为透明
statusBarIconBrightness: Brightness.dark,
),
),
preferredSize: const Size.fromHeight(60),
),
body: body,
);
}
}