Created
December 3, 2020 20:45
-
-
Save malibayram/1b1932795189abf67b5bd7c468a8c1a6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/material.dart'; | |
void main() => runApp(MyApp()); | |
class MyApp extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return MaterialApp( | |
debugShowCheckedModeBanner: false, | |
title: 'Projem', | |
theme: ThemeData(primarySwatch: Colors.purple), | |
home: GirisSayfasi(), | |
); | |
} | |
} | |
class GirisSayfasi extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return Scaffold( | |
backgroundColor: Theme.of(context).primaryColor, | |
body: Center( | |
child: Column( | |
children: <Widget>[ | |
SizedBox( | |
height: 25.0, | |
), | |
FlutterLogo( | |
size: 70.0, | |
//colors: Colors.grey, | |
), | |
SizedBox( | |
height: 25.0, | |
), | |
Text("socialworld", | |
style: TextStyle( | |
color: Colors.white, | |
fontSize: 30.0, | |
fontWeight: FontWeight.bold)), | |
SizedBox( | |
height: 35.0, | |
), | |
Container( | |
child: Column( | |
children: <Widget>[ | |
Padding( | |
padding: const EdgeInsets.all(12.0), | |
child: Container( | |
alignment: Alignment.center, | |
child: Text( | |
"mail ile giriş", | |
style: TextStyle( | |
fontSize: 18.0, | |
fontWeight: FontWeight.bold, | |
color: Colors.white), | |
), | |
width: double.infinity, | |
height: 50.0, | |
decoration: BoxDecoration( | |
color: Colors.purple, | |
borderRadius: BorderRadius.circular(20.0)), | |
), | |
), | |
Row( | |
children: <Widget>[ | |
Expanded( | |
child: Container( | |
alignment: Alignment.center, | |
child: Text( | |
"mail ile giriş", | |
style: TextStyle( | |
fontSize: 18.0, | |
fontWeight: FontWeight.bold, | |
color: Colors.white), | |
), | |
height: 50.0, | |
decoration: BoxDecoration( | |
color: Colors.purple, | |
borderRadius: BorderRadius.circular(20.0)), | |
), | |
), | |
], | |
), | |
], | |
), | |
decoration: BoxDecoration( | |
gradient: LinearGradient( | |
begin: Alignment.topLeft, | |
end: Alignment.bottomRight, | |
colors: [ | |
Colors.purple[300], | |
Colors.purple[100], | |
]), | |
color: Colors.white, | |
borderRadius: BorderRadius.circular(20.0)), | |
alignment: Alignment.center, | |
width: MediaQuery.of(context).size.width - 70.0, | |
height: 180.0, | |
/* child: Container( | |
margin: EdgeInsets.all(20.0), | |
width: 100.0, | |
height: 100.0, | |
color: Colors.red, | |
), */ | |
) | |
], | |
), | |
), | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment