Facebook
From Sahil Pandey, 3 Years ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 159
  1. import 'package:flutter/material.dart';
  2.  
  3. class Info extends StatefulWidget {
  4.   @override
  5.   _InfoState createState() => _InfoState();
  6. }
  7.  
  8. class _InfoState extends State<Info> {
  9.   @override
  10.   Widget build(BuildContext context) {
  11.     return Scaffold(
  12.       appBar: AppBar(
  13.         title: Text(
  14.           'COVID COMPANION',
  15.           style: TextStyle(
  16.               fontSize: 20.0,
  17.               fontWeight: FontWeight.bold,
  18.               letterSpacing: 2.0
  19.           ),
  20.         ),
  21.         backgroundColor: Colors.indigo[900],
  22.         centerTitle: true,
  23.         elevation: 0,
  24.       ),
  25.       backgroundColor: Colors.grey[200],
  26.       body:
  27.       GridView.count(
  28.           crossAxisCount: 2,
  29.         children: <Widget>[
  30.           Container(
  31.             child: Card(
  32.               elevation: 10.0,
  33.               child:Column(
  34.                 mainAxisAlignment: MainAxisAlignment.center,
  35.                 children: <Widget>[
  36.                   Image(
  37.                     image: AssetImage('assets/undraw_faq_rjoy.png'),
  38.                     height:150.0,
  39.                     width: 200.0,
  40.                     fit:BoxFit.cover,
  41.                   ),
  42.                   SizedBox(height:5.0 ,),
  43.                  OutlineButton(
  44.                    shape: StadiumBorder(),
  45.                    onPressed: (){},
  46.                    borderSide: BorderSide(color: Colors.pink.shade200),
  47.                    splashColor: Colors.pinkAccent[100],
  48.                    child: Padding(
  49.                      padding: EdgeInsets.all(8.0),
  50.                      child: Text(
  51.                      'FAQ',
  52.                       style: TextStyle(
  53.                        fontWeight: FontWeight.bold,
  54.                        color: Colors.black,
  55.                      ),
  56.                    ),
  57.                    ),
  58.  
  59.                  )
  60.  
  61.                 ],
  62.  
  63.  
  64.               )
  65.             ),
  66.  
  67.           ),
  68.           Container(
  69.             child: Card(
  70.                 elevation: 10.0,
  71.                 child:Column(
  72.                   mainAxisAlignment: MainAxisAlignment.center,
  73.                   children: <Widget>[
  74.                     Image(
  75.                       image: AssetImage('assets/undraw_faq_rjoy.png'),
  76.                       height:150.0,
  77.                       width: 200.0,
  78.                       fit:BoxFit.cover,
  79.                     ),
  80.                     SizedBox(height:5.0 ,),
  81.                     OutlineButton(
  82.                       shape: StadiumBorder(),
  83.                       onPressed: (){},
  84.                       borderSide: BorderSide(color: Colors.pink.shade200),
  85.                       splashColor: Colors.pinkAccent[100],
  86.                       child: Padding(
  87.                         padding: EdgeInsets.all(8.0),
  88.                         child: Text(
  89.                           'DOs',
  90.                           style: TextStyle(
  91.                             fontWeight: FontWeight.bold,
  92.                             color: Colors.black,
  93.                           ),
  94.                         ),
  95.                       ),
  96.  
  97.                     )
  98.  
  99.                   ],
  100.  
  101.  
  102.                 )
  103.             ),
  104.  
  105.           ),
  106.           Container(
  107.             child: Card(
  108.                 elevation: 10.0,
  109.                 child:Column(
  110.                   mainAxisAlignment: MainAxisAlignment.center,
  111.                   children: <Widget>[
  112.                     Image(
  113.                       image: AssetImage('assets/undraw_faq_rjoy.png'),
  114.                       height:150.0,
  115.                       width: 200.0,
  116.                       fit:BoxFit.cover,
  117.                     ),
  118.                     SizedBox(height:5.0 ,),
  119.                     OutlineButton(
  120.                       shape: StadiumBorder(),
  121.                       onPressed: (){},
  122.                       borderSide: BorderSide(color: Colors.pink.shade200),
  123.                       splashColor: Colors.pinkAccent[100],
  124.                       child: Padding(
  125.                         padding: EdgeInsets.all(8.0),
  126.                         child: Text(
  127.                           'DONTs',
  128.                           style: TextStyle(
  129.                             fontWeight: FontWeight.bold,
  130.                             color: Colors.black,
  131.                           ),
  132.                         ),
  133.                       ),
  134.  
  135.                     )
  136.  
  137.                   ],
  138.  
  139.  
  140.                 )
  141.             ),
  142.  
  143.           ),
  144.           Container(
  145.             child: Card(
  146.                 elevation: 10.0,
  147.                 child:Column(
  148.                   mainAxisAlignment: MainAxisAlignment.center,
  149.                   children: <Widget>[
  150.                     Image(
  151.                       image: AssetImage('assets/undraw_faq_rjoy.png'),
  152.                       height:150.0,
  153.                       width: 200.0,
  154.                       fit:BoxFit.cover,
  155.                     ),
  156.                     SizedBox(height:5.0 ,),
  157.                     OutlineButton(
  158.                       shape: StadiumBorder(),
  159.                       onPressed: (){},
  160.                       borderSide: BorderSide(color: Colors.pink.shade200),
  161.                       splashColor: Colors.pinkAccent[100],
  162.                       child: Padding(
  163.                         padding: EdgeInsets.all(8.0),
  164.                         child: Text(
  165.                           'FAKE NEWS',
  166.                           style: TextStyle(
  167.                             fontWeight: FontWeight.bold,
  168.                             color: Colors.black,
  169.                           ),
  170.                         ),
  171.                       ),
  172.  
  173.                     )
  174.  
  175.                   ],
  176.  
  177.  
  178.                 )
  179.             ),
  180.  
  181.           )
  182.  
  183.       ]
  184.         ),
  185.       );
  186.   }
  187. }
  188.  

Replies to starting info rss

Title Name Language When
do Sahil Pandey text 3 Years ago.
faq Sahil Pandey text 3 Years ago.
Re: starting info Sahil Pandey text 3 Years ago.
Re: starting info Sahil Pandey text 3 Years ago.