build method
- BuildContext context
override
Builds the page, using the provided BuildContext
Implementation
@override
/// Builds the page, using the provided BuildContext
Widget build(BuildContext context) {
return SafeArea(
child: Scaffold(
backgroundColor: Colors.blue[50],
appBar: AppBar(
title: Text(
'Frequently Asked Questions',
style: TextStyle(
fontSize: 18,
color: Colors.grey[700],
),
),
centerTitle: true,
elevation: 1.0,
backgroundColor: Hexcolor('#fddcd8'),
iconTheme: IconThemeData(
color: Colors.grey[700],
),
),
drawer: NavDrawer('ContactAbout'),
body: Container(
child: ListView(
physics: BouncingScrollPhysics(),
children: <Widget>[
FaqCard(question: question1, answer: answer1),
FaqCard(question: question2, answer: answer2),
FaqCard(question: question3, answer: answer3),
FaqCard(question: question4, answer: answer4),
FaqCard(question: question5, answer: answer5),
FaqCard(question: question6, answer: answer6),
FaqCard(question: question7, answer: answer7),
FaqCard(question: question8, answer: answer8),
FaqCard(question: question9, answer: answer9),
],
)
)
)
);
}