import 'package:flutter/material.dart'; import 'package:empty/components/background.dart'; import 'package:empty/components/bbs_list.dart'; class NoticeScreen extends StatefulWidget { @override _NoticeScreenState createState() => _NoticeScreenState(); } class _NoticeScreenState extends State { @override Widget build(BuildContext context) { return Background( image: Container( height: double.infinity, width: double.infinity, decoration: BoxDecoration( image: DecorationImage( image: AssetImage('assets/images/background_config.png'), fit: BoxFit.cover ) ), ), child: Scaffold( backgroundColor: Colors.transparent, appBar: AppBar( title: Text('공지사항',style: TextStyle(fontSize: 18),), //centerTitle: true, backgroundColor: Colors.transparent, elevation: 0.0, ), body: Column( children: [ Padding( padding: const EdgeInsets.only(top: 20,bottom: 20), child: Text('엠프티의 새로운 소식을 알려드립니다.',style: Theme.of(context).textTheme.bodyText1), ), Expanded(child: BbsListView(type:'notice',page: '1',size: '20',)), ], ), ), ); } }