Skip to content

Instantly share code, notes, and snippets.

@amadeu01
Created June 6, 2024 16:38
Show Gist options
  • Save amadeu01/3ce08169c8e5a392c62a835b56832640 to your computer and use it in GitHub Desktop.
Save amadeu01/3ce08169c8e5a392c62a835b56832640 to your computer and use it in GitHub Desktop.
Generated code from pixels2flutter.dev
import 'package:flutter/material.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
debugShowCheckedModeBanner: false,
home: Scaffold(
backgroundColor: Colors.black,
body: Center(
child: Container(
width: 300,
height: 400,
decoration: BoxDecoration(
color: Colors.white,
borderRadius: BorderRadius.circular(20),
),
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Container(
width: 150,
height: 150,
decoration: BoxDecoration(
color: Colors.blue,
borderRadius: BorderRadius.circular(20),
),
child: Center(
child: Image.network(
'https://placehold.co/100x100?description=Bot%20icon',
width: 100,
height: 100,
),
),
),
SizedBox(height: 20),
Text(
'BOTCHAT',
style: TextStyle(
fontSize: 24,
fontWeight: FontWeight.bold,
color: Colors.black,
),
),
SizedBox(height: 20),
Padding(
padding: const EdgeInsets.symmetric(horizontal: 20),
child: Text(
'Un bot capaz de dirigir a toda una comunidad. Moderación, enlaces, gamify.. Su límite lo pones TÚ',
textAlign: TextAlign.center,
style: TextStyle(
fontSize: 16,
color: Colors.black,
),
),
),
SizedBox(height: 30),
ElevatedButton(
onPressed: () {
// Handle button press
},
child: Text('START'),
style: ElevatedButton.styleFrom(
primary: Colors.blue,
onPrimary: Colors.white,
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(30),
),
padding: EdgeInsets.symmetric(horizontal: 40, vertical: 15),
),
),
],
),
),
),
),
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment