notice_config.dart 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. import 'package:flutter/material.dart';
  2. import 'package:empty/components/background.dart';
  3. import 'package:empty/components/bbs_list.dart';
  4. class NoticeScreen extends StatefulWidget {
  5. @override
  6. _NoticeScreenState createState() => _NoticeScreenState();
  7. }
  8. class _NoticeScreenState extends State<NoticeScreen> {
  9. @override
  10. Widget build(BuildContext context) {
  11. return Background(
  12. image: Container(
  13. height: double.infinity,
  14. width: double.infinity,
  15. decoration: BoxDecoration(
  16. image: DecorationImage(
  17. image: AssetImage('assets/images/background_config.png'),
  18. fit: BoxFit.cover
  19. )
  20. ),
  21. ),
  22. child: Scaffold(
  23. backgroundColor: Colors.transparent,
  24. appBar: AppBar(
  25. title: Text('공지사항',style: TextStyle(fontSize: 18),),
  26. //centerTitle: true,
  27. backgroundColor: Colors.transparent,
  28. elevation: 0.0,
  29. ),
  30. body: Column(
  31. children: [
  32. Padding(
  33. padding: const EdgeInsets.only(top: 20,bottom: 20),
  34. child: Text('엠프티의 새로운 소식을 알려드립니다.',style: Theme.of(context).textTheme.bodyText1),
  35. ),
  36. Expanded(child: BbsListView(type:'notice',page: '1',size: '20',)),
  37. ],
  38. ),
  39. ),
  40. );
  41. }
  42. }