faq_config.dart 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. import 'package:flutter/material.dart';
  2. import 'package:empty/components/background.dart';
  3. import 'package:empty/components/bbs_list.dart';
  4. class FaqScreen extends StatefulWidget {
  5. @override
  6. _FaqScreenState createState() => _FaqScreenState();
  7. }
  8. class _FaqScreenState extends State<FaqScreen> {
  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:'faq',page: '1',size: '20',)),
  37. ],
  38. ),
  39. ),
  40. );
  41. }
  42. }