Skip to content

Instantly share code, notes, and snippets.

@stephanedeluca
Created December 18, 2023 16:48
Show Gist options
  • Save stephanedeluca/c4deff213c14e00ed33cddc3656e4d02 to your computer and use it in GitHub Desktop.
Save stephanedeluca/c4deff213c14e00ed33cddc3656e4d02 to your computer and use it in GitHub Desktop.
mellow-ray-5050
import 'package:flutter/material.dart';
const Color darkBlue = Color.fromARGB(255, 18, 32, 47);
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
theme: ThemeData.dark().copyWith(
scaffoldBackgroundColor: darkBlue,
),
debugShowCheckedModeBanner: false,
home: Scaffold(
body: Center(
child: MyWidget(),
),
),
);
}
}
class MyWidget extends StatelessWidget {
@override
Widget build(BuildContext context) {
return ListView(children:[
Container(
color:Colors.red,
child: ListTile(
leading: Column(children:[
Icon(Icons.abc, size:180),
]),
title: Text('Hello, World!'),
trailing:ElevatedButton(onPressed:(){}, child:Text("CONNECT"),),
),
),
Container(
color:Colors.blue,
child: ListTile(
leading: Icon(Icons.abc, size:180),
title: Text('Hello, World!'),
trailing: ElevatedButton(onPressed:(){}, child:Text("CONNECT"),),
),
),
]);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment