Skip to content

Instantly share code, notes, and snippets.

@pmatatias
Last active January 30, 2024 10:41
Show Gist options
  • Save pmatatias/c3f0c6f4dcc5d0705d32b7ba10f4a429 to your computer and use it in GitHub Desktop.
Save pmatatias/c3f0c6f4dcc5d0705d32b7ba10f4a429 to your computer and use it in GitHub Desktop.
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 SizedBox(
height: 500,
child: Column(children: [
ConstrainedBox(
constraints: BoxConstraints(maxHeight: 300),
child: SingleChildScrollView(
child: ExpansionTile(
title: const Text('testerList'),
children: List.generate(
30,
(index) => Text("ssdasdas"),
),
)),
),
ExpansionTile(
title: const Text('testerList'),
children: List.generate(
7,
(index) => Text("ssdasdas"),
),
),
]),
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment