33 lines
840 B
Dart
33 lines
840 B
Dart
import 'package:flutter/material.dart';
|
|
import './quiz.dart';
|
|
import './heading.dart';
|
|
import './person.dart';
|
|
|
|
void main() async {
|
|
List<Person> people = await getPeopleList();
|
|
runApp(Senatorialkillers(
|
|
people: people,
|
|
));
|
|
}
|
|
|
|
class Senatorialkillers extends StatelessWidget {
|
|
const Senatorialkillers({required this.people, Key? key}) : super(key: key);
|
|
final List<Person> people;
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return MaterialApp(
|
|
home: Scaffold(
|
|
body: SingleChildScrollView(
|
|
child: Center(
|
|
child: Column(
|
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
|
crossAxisAlignment: CrossAxisAlignment.center,
|
|
children: [const Heading(), Quiz(fullPeopleList: people)],
|
|
),
|
|
),
|
|
),
|
|
),
|
|
);
|
|
}
|
|
}
|