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

35 lines
956 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';
2021-06-04 09:34:25 +00:00
//import 'package:alice/alice.dart';
2018-09-14 16:59:13 +00:00
void main() => runApp(VikunjaGlobal(
child: new VikunjaApp(home: HomePage()),
login: new VikunjaApp(home: LoginPage())));
2021-03-15 07:31:38 +00:00
class VikunjaApp extends StatefulWidget {
final Widget home;
2021-03-15 07:31:38 +00:00
VikunjaApp({Key key, this.home}) : super(key: key);
@override
_VikunjaAppState createState() => _VikunjaAppState();
}
class _VikunjaAppState extends State<VikunjaApp> {
2021-06-04 09:34:25 +00:00
//Alice alice = Alice(showNotification: true);
2021-03-15 07:31:38 +00:00
2018-09-14 16:59:13 +00:00
@override
Widget build(BuildContext context) {
return new MaterialApp(
2021-06-04 09:34:25 +00:00
//navigatorKey: alice.getNavigatorKey(),
2018-09-15 12:18:24 +00:00
title: 'Vikunja',
theme: buildVikunjaTheme(),
darkTheme: buildVikunjaDarkTheme(),
2021-03-15 07:31:38 +00:00
home: this.widget.home,
2018-09-14 16:59:13 +00:00
);
}
2018-09-16 19:47:53 +00:00
}