-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.dart
More file actions
45 lines (41 loc) · 1.42 KB
/
main.dart
File metadata and controls
45 lines (41 loc) · 1.42 KB
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
43
44
45
import 'package:flutter/material.dart';
import 'package:flutter_app_leitor_codigo/listaCodigo.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
//OK
//OK0001
// This widget is the root of your application.
@override
Widget build(BuildContext context) {
return MaterialApp(
debugShowCheckedModeBanner: false,
title: "Leitor de Códigos",
theme: ThemeData(
appBarTheme: const AppBarTheme(
backgroundColor: Color.fromRGBO(74, 130, 198, 1),
titleTextStyle: TextStyle(
fontSize: 25, fontWeight: FontWeight.bold, color: Colors.white),
),
brightness: Brightness.light,
scaffoldBackgroundColor: Colors.white,
floatingActionButtonTheme: const FloatingActionButtonThemeData(
backgroundColor: Color.fromRGBO(74, 130, 198, 1),
),
elevatedButtonTheme: ElevatedButtonThemeData(
style: ElevatedButton.styleFrom(
foregroundColor: Colors.white,
backgroundColor: const Color.fromRGBO(74, 130, 198, 5),
padding: const EdgeInsets.symmetric(vertical: 10, horizontal: 10),
textStyle:
const TextStyle(fontSize: 20, fontWeight: FontWeight.w600),
),
),
),
themeMode: ThemeMode.light,
home: const ResultPage(),
);
}
}