-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp_logo.dart
42 lines (39 loc) · 1.13 KB
/
app_logo.dart
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
import 'package:flutter/material.dart';
class AppLogo extends StatelessWidget {
const AppLogo(this.startQuiz, {super.key});
final void Function() startQuiz;
@override
Widget build(context) {
return Center(
child: Column(
mainAxisSize: MainAxisSize.min,
children: [
Image.asset(
'assets/images/quiz-logo.png',
width: 320,
color: const Color.fromARGB(145, 255, 255, 255),
),
const SizedBox(height: 60),
Text(
'Here you can learn flutter the fun way!',
style: TextStyle(
color: const Color.fromARGB(255, 255, 255, 255),
fontSize: 22,
),
),
const SizedBox(height: 30, width: 80),
OutlinedButton.icon(
onPressed: () {
startQuiz();
},
style: OutlinedButton.styleFrom(
foregroundColor: const Color.fromARGB(255, 255, 255, 255),
),
icon: const Icon(Icons.touch_app_rounded),
label: const Text('Start Quiz'),
),
],
),
);
}
}