Skip to content

Instantly share code, notes, and snippets.

@davidauza-engineer
Created March 3, 2023 01:30
Show Gist options
  • Save davidauza-engineer/dcf80caa3a97a4986d9e5741bff7c44f to your computer and use it in GitHub Desktop.
Save davidauza-engineer/dcf80caa3a97a4986d9e5741bff7c44f to your computer and use it in GitHub Desktop.
enchanted-neutron-8997

enchanted-neutron-8997

Created with <3 with dartpad.dev.

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