Skip to content

Instantly share code, notes, and snippets.

@bioanapaula
Created June 7, 2025 20:04
Show Gist options
  • Save bioanapaula/e553f1034ef9b5010325c49576657163 to your computer and use it in GitHub Desktop.
Save bioanapaula/e553f1034ef9b5010325c49576657163 to your computer and use it in GitHub Desktop.
App Para a Dona Kiara
import 'package:flutter/material.dart';
void main() => runApp(MeuApp());
class MeuApp extends StatefulWidget {
@override
_MeuAppState createState() => _MeuAppState();
}
class _MeuAppState extends State<MeuApp> with SingleTickerProviderStateMixin {
late AnimationController _controller;
late Animation<double> _scaleAnimation;
@override
void initState() {
super.initState();
_controller = AnimationController(
vsync: this,
duration: Duration(milliseconds: 800),
)..repeat(reverse: true);
_scaleAnimation = Tween<double>(begin: 1.0, end: 1.4).animate(
CurvedAnimation(parent: _controller, curve: Curves.easeInOut),
);
}
@override
void dispose() {
_controller.dispose();
super.dispose();
}
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Coraçãozinho Flutter',
home: Scaffold(
appBar: AppBar(
title: Text('Pra Kiara ❤️'),
backgroundColor: Colors.pinkAccent,
),
body: Center(
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Image.network(
'https://i.postimg.cc/4NGx5nrq/IMG-20250604-WA0009-2.jpg',
width: 150,
),
SizedBox(height: 20),
Text(
'Olá, Kiara!',
style: TextStyle(
fontSize: 26,
fontWeight: FontWeight.bold,
color: Colors.deepPurple,
),
),
SizedBox(height: 10),
Text(
'Confesso que isso é muito difícil.\n'
'Estou queimando minha mufa pra aprender kkkk.\n'
'Mas confio em você. Vamos fazer isso dar certo!',
textAlign: TextAlign.center,
style: TextStyle(
fontSize: 18,
color: Colors.black87,
),
),
SizedBox(height: 30),
ScaleTransition(
scale: _scaleAnimation,
child: Icon(
Icons.favorite,
color: Colors.pink,
size: 60,
),
),
],
),
),
),
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment