Biraz sade oldu ama annem çok beğendi, bir öpücük alabiliyorsunuz. 
Uygulamayı çalıştırmak için bilgisayarınızda Flutter ve gereklilikleri yüklü olmalı.
[CODE lang="javascript" title="main.dart"]import 'package:flutter/material.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
debugShowCheckedModeBanner: false,
title: 'Anneler Günü',
theme: ThemeData(
primarySwatch: Colors.blue,
visualDensity: VisualDensity.adaptivePlatformDensity,
),
home: MyHomePage(title: 'Anneler günü'),
);
}
}
class MyHomePage extends StatefulWidget {
MyHomePage({Key key, this.title}) : super(key: key);
final String title;
@override
_MyHomePageState createState() => _MyHomePageState();
}
class _MyHomePageState extends State<MyHomePage> {
@override
Widget build(BuildContext context) {
return Scaffold(
backgroundColor: Colors.blueAccent,
body: Center(
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
FlatButton(
minWidth: 200,
height: 66,
child: Text("Bana Tıkla"),
color: Colors.deepOrange,
textColor: Colors.white,
onPressed: ()=>{
showDialog(
context: context,
child: AlertDialog(
contentTextStyle: TextStyle(fontWeight: FontWeight.bold),
titleTextStyle: TextStyle(color: Colors.white,fontWeight: FontWeight.w300),
backgroundColor: Colors.lightBlueAccent,
title: Text("Anneler Günü"),
content: Text("Anneler günün kutlu olsun anne.")
)
)
},
)
],
),
),
);
}
}
[/CODE]
Yazıları kendiniz değiştirebilir, annenizin ismini koyabilirsiniz, renkleri değiştirebilirsiniz veya özel yazı tipleri uygulayabilirsiniz.
NOT: Telefonu yan tutarsanız daha güzel olur.
Uygulamayı çalıştırmak için bilgisayarınızda Flutter ve gereklilikleri yüklü olmalı.
[CODE lang="javascript" title="main.dart"]import 'package:flutter/material.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
debugShowCheckedModeBanner: false,
title: 'Anneler Günü',
theme: ThemeData(
primarySwatch: Colors.blue,
visualDensity: VisualDensity.adaptivePlatformDensity,
),
home: MyHomePage(title: 'Anneler günü'),
);
}
}
class MyHomePage extends StatefulWidget {
MyHomePage({Key key, this.title}) : super(key: key);
final String title;
@override
_MyHomePageState createState() => _MyHomePageState();
}
class _MyHomePageState extends State<MyHomePage> {
@override
Widget build(BuildContext context) {
return Scaffold(
backgroundColor: Colors.blueAccent,
body: Center(
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
FlatButton(
minWidth: 200,
height: 66,
child: Text("Bana Tıkla"),
color: Colors.deepOrange,
textColor: Colors.white,
onPressed: ()=>{
showDialog(
context: context,
child: AlertDialog(
contentTextStyle: TextStyle(fontWeight: FontWeight.bold),
titleTextStyle: TextStyle(color: Colors.white,fontWeight: FontWeight.w300),
backgroundColor: Colors.lightBlueAccent,
title: Text("Anneler Günü"),
content: Text("Anneler günün kutlu olsun anne.")
)
)
},
)
],
),
),
);
}
}
[/CODE]
Yazıları kendiniz değiştirebilir, annenizin ismini koyabilirsiniz, renkleri değiştirebilirsiniz veya özel yazı tipleri uygulayabilirsiniz.
NOT: Telefonu yan tutarsanız daha güzel olur.