Ahmedkhaled987 / Android-application-

0 stars 0 forks source link

simple project using Flutter #1

Open Ahmedkhaled987 opened 1 year ago

Ahmedkhaled987 commented 1 year ago

// ignore: file_names import 'package:flutter/material.dart'; // ignore: library_prefixes import 'dart:math' as Math; class Homescreen extends StatelessWidget { const Homescreen({super.key});

@override Widget build(BuildContext context) { return Scaffold( appBar:AppBar( title: const Text( 'Chat App',

      ),
     actions: [
      IconButton(
        onPressed: ()  {},
         icon:const Icon(Icons.video_call),
       ),
    IconButton(
        onPressed: ()  {},
         icon:const Icon(Icons.camera_alt),
       ),
         const Padding(
         padding: EdgeInsets.all(10),
          child:Icon(Icons.call), 
        ),
       const Padding(
        padding: EdgeInsets.all(10),
       child:Icon(Icons.search),
        ), ], 
      ),

    body:Center(
      child: AspectRatio(
        aspectRatio: 1.0,
        child: Container(
        color: Colors.green,
        padding:  const EdgeInsets.all(40),
        child:   Transform.rotate (
          angle: 180/ Math.pi,
          child:Container(

             decoration:  BoxDecoration
             (borderRadius: BorderRadius.circular(100),
              color: Colors.purple,
             boxShadow: [
               BoxShadow(
              // color: Colors.deepPurple.withAlpha(120),
              blurRadius: 15,
               spreadRadius: 2,
               offset: Offset.fromDirection(1.0,10)
              ),
             ],
            ),

            padding: const EdgeInsets.all(50),
            child:  Container(
              decoration: const BoxDecoration(
                shape: BoxShape.circle,
                gradient:  LinearGradient(
                  colors: [
                    Colors.blue,
                    Colors.white54
                  ],

                ),
                boxShadow: [
                  BoxShadow(
                   // color: Colors.deepPurple.withAlpha(120),
                   // spreadRadius: 5,
                    blurRadius: 25,
                   // offset: Offset.fromDirection(1.0,30)
                  ),
                ],
                  ),

              ) ,

          ),
        ),
        ),
      ),
    ),

    drawer:const Drawer(
      child:Center(
      child:Text('My Account'),),
      backgroundColor: Color.fromARGB(255, 226, 236, 245),

    ),

    floatingActionButton :FloatingActionButton(onPressed: () {
      print("Float Action Button is Cllicked" ); }, 
      child: Icon(Icons.favorite),),

);
} }

/*const Center( child: Text( 'Hello, Flutter', style: TextStyle( fontSize: 40.0, color: Color.fromARGB(255, 162, 231, 2) ,

        ),
      ),
    ),*/