How Create Card in Flutter

 MaterialApp(

    home: Scaffold(
          appBar: AppBar(
            title: Text(
              'My first FlutterApp',
              textDirection: TextDirection.ltr,
            ),
          ),
          backgroundColor: Colors.green,
          body: Center(
              child: SizedBox(
                  height: 350,
                  child: Card(
                    child: Padding(
                      padding: EdgeInsets.all(20),
                      child: Column(
                        children: [
                          Image.asset(
                            'images/ahmad.jpg',
                            height: 200,
                          ),
                          Divider(),
                          Text("OppoA12"),
                        ],
                      ),
                    ),
                  )))));

Comments

Popular Posts