pageChildren method

List<Widget> pageChildren(
  1. double width,
  2. double size,
  3. double box,
  4. double space,
  5. double horz,
)

Implementation

List<Widget> pageChildren(double width, double size, double box, double space, double horz) {
  return <Widget>[
    Container(
     width: width-50,
     height: 500,
     color: Colors.white,
     padding: const EdgeInsets.symmetric(horizontal: 10, vertical: 10),
     child:SingleChildScrollView(
     child: Column(
       crossAxisAlignment: CrossAxisAlignment.start,
     children: <Widget>[
     Text(
           'Service Category',
           style: TextStyle(
             fontWeight: FontWeight.bold,
             fontFamily: 'RaleWay',
             fontSize: size
             ),
           ),
          CountryList()
           ]))),
   Expanded(child: Container(
     color: Colors.white,
     padding: EdgeInsets.symmetric(horizontal: horz, vertical: 10),
     child: Scrollbar(
       isAlwaysShown: true,
       controller: _scrollController,
       child: GridView.count(
         controller: _scrollController,
              crossAxisCount: 3,
              crossAxisSpacing: space,
              mainAxisSpacing: 8.0,
              childAspectRatio: box,
              children: List.generate(countries.length, (index) {
                return Center(
                  child: CountrySelectCard(countries: countries[index]),
                );
              }
     ))))
            ),

        ];

}