Untitled

 avatar
unknown
plain_text
4 years ago
3.6 kB
24
Indexable
import 'package:flutter/material.dart';

 
void main() {
  runApp(MyApp());
}
 
class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      debugShowCheckedModeBanner: false,
      theme: ThemeData(
        visualDensity: VisualDensity.adaptivePlatformDensity,
      ),
      home: Scaffold(
        appBar: AppBar(
          title: Text('Şeyma :)'),
          centerTitle: true,
        ),
        drawer: Drawer(
          child: DrawerHeader(
            child: Column(
              mainAxisAlignment: MainAxisAlignment.start,
              children: [
                Icon(
                  Icons.strikethrough_s,
                  size: 70,
                  color: Colors.green,
                ),
                Text('Deneme '),
                ListTile(
                  title: Text('Ana sayfa'),
                  leading: Icon(Icons.home),
                  trailing: Icon(Icons.switch_right),
                  onTap: () {
                    Navigator.pop(context);
                  },
                ),
                 ListTile(
                  title: Text('İletişim'),
                  leading: Icon(Icons.call),
                  trailing: Icon(Icons.switch_right),
                  onTap: () {
                    Navigator.pop(context);
                  },
                 ),
              ],
            ),
          ),
        ),
        body: SingleChildScrollView(
          padding: EdgeInsets.all(8),
          child: Column(
            mainAxisAlignment: MainAxisAlignment.spaceBetween,
            children: [
                 new Text(
                '\$  ',
                style: new TextStyle(
                  fontSize: 20.0,
                  fontFamily: 'Roboto',
                  color: new Color(0xFF26C6DA),
                )
              ),
              
              MyContainer(),
              Text('A'),
              SizedBox(
                height: 5,
              ),
              MyContainer(),
                Text('B'),
              SizedBox(
                height: 5,
              ),
              MyContainer(),
              SizedBox(
                height: 5,
              ),
              MyContainer(),
              SizedBox(
                height: 5,
              ),
              MyContainer(),
              SizedBox(
                height: 5,
              ),
              MyContainer(),
              SizedBox(
                height: 5,
              ),
              MyContainer(),
              SizedBox(
                height: 5,
              ),
              MyContainer(),
              SizedBox(
                height: 5,
              ),
               MyContainer(),
              SizedBox(
                height: 5,
              ),
               MyContainer(),
              SizedBox(
                height: 5,
              ),
               MyContainer(),
              SizedBox(
                height: 5,
              ),
               MyContainer(),
              SizedBox(
                height: 5,
              ),
            ],
          ),
        ),
      ),
    );
  }
}
 
class MyContainer extends StatelessWidget {
  const MyContainer({
    Key key,
  }) : super(key: key);
 
  @override
  Widget build(BuildContext context) {
    return Container(
      width: 300,
      height: 50,
      color: Colors.indigo[200],
    );
  }
}
Editor is loading...