This repository has been archived on 2022-04-20. You can view files and clone it, but cannot push or open issues or pull requests.
app/lib/main.dart

25 lines
699 B
Dart
Raw Normal View History

2018-09-14 16:59:13 +00:00
import 'package:flutter/material.dart';
2018-09-22 20:56:16 +00:00
import 'package:vikunja_app/global.dart';
2019-03-16 13:29:00 +00:00
import 'package:vikunja_app/pages/home.dart';
import 'package:vikunja_app/pages/user/login.dart';
2019-03-11 20:38:05 +00:00
import 'package:vikunja_app/theme/theme.dart';
2018-09-14 16:59:13 +00:00
void main() => runApp(VikunjaGlobal(
child: new VikunjaApp(home: HomePage()),
login: new VikunjaApp(home: LoginPage())));
2018-09-15 15:01:45 +00:00
class VikunjaApp extends StatelessWidget {
final Widget home;
const VikunjaApp({Key key, this.home}) : super(key: key);
2018-09-14 16:59:13 +00:00
@override
Widget build(BuildContext context) {
return new MaterialApp(
2018-09-15 12:18:24 +00:00
title: 'Vikunja',
theme: buildVikunjaTheme(),
darkTheme: buildVikunjaDarkTheme(),
home: this.home,
2018-09-14 16:59:13 +00:00
);
}
2018-09-16 19:47:53 +00:00
}