Created with <3 with dartpad.dev.
Created
March 3, 2023 01:30
-
-
Save davidauza-engineer/dcf80caa3a97a4986d9e5741bff7c44f to your computer and use it in GitHub Desktop.
enchanted-neutron-8997
This file contains 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'; | |
const Color darkBlue = Color.fromARGB(255, 18, 32, 47); | |
void main() { | |
runApp(MyApp()); | |
} | |
final List<String> lista = ['Juan', 'Pedro', 'José']; | |
class MyApp extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return MaterialApp( | |
theme: ThemeData.dark().copyWith( | |
scaffoldBackgroundColor: darkBlue, | |
), | |
debugShowCheckedModeBanner: false, | |
home: Scaffold( | |
appBar: AppBar( | |
backgroundColor: Colors.green, | |
), | |
body: ListView.builder( | |
itemBuilder: (context, index) => Container( | |
child: Text(lista[index]) | |
), | |
itemCount: lista.length, | |
), | |
), | |
); | |
} | |
} | |
class MyWidget extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return Text( | |
'Hello, World!', | |
style: Theme.of(context).textTheme.headline4, | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment