qa_list.dart 646 B

1234567891011121314151617181920212223
  1. import 'package:flutter/material.dart';
  2. import 'package:jmrh/constant/styles.dart';
  3. import 'package:jmrh/widget/item_qa.dart';
  4. class QaList extends StatefulWidget {
  5. QaList({Key key}) : super(key: key);
  6. @override
  7. _QaListState createState() => _QaListState();
  8. }
  9. class _QaListState extends State<QaList> {
  10. @override
  11. Widget build(BuildContext context) {
  12. return Scaffold(
  13. appBar: appBarLight('官方问答'),
  14. body: ListView.separated(
  15. itemBuilder: (context, index) => ItemQa(),
  16. separatorBuilder: (context, index) => Divider(indent: 16, endIndent: 16, height: 1),
  17. itemCount: 10),
  18. );
  19. }
  20. }