Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
1.8 kB
12
Indexable
Never
import 'package:firebase_auth/firebase_auth.dart';
import 'package:flutter/material.dart';

class DrawerWidge extends StatelessWidget {
  DrawerWidge({Key? key}) : super(key: key);
  @override
  Widget build(BuildContext context) {
    return Drawer(
        child: Container(
          color: Theme.of(context).primaryColor,
          child: ListView(
            children: [
              DrawerHeader(
                  padding: EdgeInsets.zero,
                  child: Container(
                    // color: Colors.red,
                    padding: EdgeInsets.all(5),
                    child: Row(
                      children: [
                        CircleAvatar(
                          radius: 50,
                          backgroundImage: NetworkImage(
                              "https://avatars.githubusercontent.com/u/68488154?u=baf6ecf0d026dc8d265ffeab69046eb45f543e87&v=4"),
                        ),
                        SizedBox(
                          width: 10,
                        ),
                        Column(
                          mainAxisAlignment: MainAxisAlignment.center,
                          crossAxisAlignment: CrossAxisAlignment.start,
                          children: [
                            Text(Nick),
                            Text("haisdjksk@gmail.com"),
                          ],
                        ),
                      ],
                    ),
                  )),
              ListTile(
                iconColor: Colors.white,
                leading: Icon(Icons.folder),
                title: Text("My File"),
                textColor: Colors.white,
              ),
            ],
          ),
        ),
      );
  }
}