parent
43d3971561
commit
fb423a7e61
@ -0,0 +1,53 @@
|
||||
import 'package:aku_community/base/base_style.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:aku_community/utils/headers.dart';
|
||||
|
||||
class PublicInfomationCard extends StatelessWidget {
|
||||
const PublicInfomationCard({Key? key}) : super(key: key);
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return MaterialButton(
|
||||
color: Colors.white,
|
||||
elevation: 0,
|
||||
materialTapTargetSize: MaterialTapTargetSize.shrinkWrap,
|
||||
onPressed: () {},
|
||||
padding: EdgeInsets.zero,
|
||||
child: Container(
|
||||
height: 248.w,
|
||||
padding: EdgeInsets.symmetric(horizontal: 32.w, vertical: 24.w),
|
||||
child: Row(
|
||||
children: [
|
||||
Expanded(
|
||||
child: Column(
|
||||
children: [
|
||||
Text('今日快讯|日本决定将核污水拍入海中,中方对此强势喊话日本考虑需谨慎'),
|
||||
Spacer(),
|
||||
DefaultTextStyle(
|
||||
style: TextStyle(
|
||||
color: ktextSubColor,
|
||||
fontSize: 20.sp,
|
||||
),
|
||||
child: Row(
|
||||
children: [
|
||||
Text('测试'),
|
||||
Spacer(),
|
||||
Text('发布于 4-11 10:11'),
|
||||
],
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
32.wb,
|
||||
SizedBox(
|
||||
width: 240.w,
|
||||
height: 200.w,
|
||||
child: Placeholder(),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
@ -0,0 +1,24 @@
|
||||
import 'package:aku_community/ui/home/public_infomation/public_infomation_card.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:aku_community/utils/headers.dart';
|
||||
|
||||
class PublicInfomationView extends StatefulWidget {
|
||||
PublicInfomationView({Key? key}) : super(key: key);
|
||||
|
||||
@override
|
||||
_PublicInfomationViewState createState() => _PublicInfomationViewState();
|
||||
}
|
||||
|
||||
class _PublicInfomationViewState extends State<PublicInfomationView> {
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return ListView.separated(
|
||||
padding: EdgeInsets.symmetric(vertical: 24.w),
|
||||
itemBuilder: (context, index) {
|
||||
return PublicInfomationCard();
|
||||
},
|
||||
separatorBuilder: (_, __) => 24.hb,
|
||||
itemCount: 100,
|
||||
);
|
||||
}
|
||||
}
|
Loading…
Reference in new issue