35 lines
1003 B
Dart
35 lines
1003 B
Dart
import 'package:flutter/material.dart';
|
|
import 'package:smilet/StartPage.dart';
|
|
|
|
void main() {
|
|
runApp(const MainApp());
|
|
}
|
|
|
|
class MainApp extends StatelessWidget {
|
|
const MainApp({super.key});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return MaterialApp(
|
|
locale: const Locale('sv'),
|
|
title: 'Smilet',
|
|
debugShowCheckedModeBanner: false,
|
|
home: const StartPage(),
|
|
theme: ThemeData(
|
|
// Background color of app
|
|
scaffoldBackgroundColor: const Color.fromARGB(255, 60, 71, 133),
|
|
useMaterial3: true,
|
|
// Change page transition
|
|
pageTransitionsTheme: const PageTransitionsTheme(builders: {
|
|
TargetPlatform.windows: CupertinoPageTransitionsBuilder(),
|
|
}),
|
|
|
|
// Define the default brightness and colors.
|
|
colorScheme: ColorScheme.fromSeed(
|
|
seedColor: const Color.fromARGB(255, 2, 67, 121),
|
|
brightness: Brightness.dark,
|
|
),
|
|
));
|
|
}
|
|
}
|