mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-07-15 07:56:11 +08:00

For now just create a local git repo and commit all the changes over there, we're going to allow the user to first see the app and use it however they want, and later connect it to a remote git repo. This commit breaks the app, as the on-boarding screen is no longer connected so you cannot push to a remote app.
39 lines
1.1 KiB
Dart
39 lines
1.1 KiB
Dart
import 'package:flutter/material.dart';
|
|
import 'package:journal/screens/home_screen.dart';
|
|
import 'package:journal/screens/settings_screen.dart';
|
|
|
|
import 'package:firebase_analytics/firebase_analytics.dart';
|
|
import 'package:firebase_analytics/observer.dart';
|
|
|
|
class JournalApp extends StatelessWidget {
|
|
static FirebaseAnalytics analytics = FirebaseAnalytics();
|
|
static FirebaseAnalyticsObserver observer =
|
|
FirebaseAnalyticsObserver(analytics: analytics);
|
|
|
|
static bool get isInDebugMode {
|
|
bool inDebugMode = false;
|
|
assert(inDebugMode = true);
|
|
return inDebugMode;
|
|
}
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return new MaterialApp(
|
|
title: 'GitJournal',
|
|
theme: new ThemeData(
|
|
brightness: Brightness.light,
|
|
primaryColor: Color(0xFF66bb6a),
|
|
primaryColorLight: Color(0xFF98ee99),
|
|
primaryColorDark: Color(0xFF338a3e),
|
|
accentColor: Color(0xff6d4c41),
|
|
),
|
|
navigatorObservers: <NavigatorObserver>[JournalApp.observer],
|
|
initialRoute: '/',
|
|
routes: {
|
|
'/': (context) => HomeScreen(),
|
|
'/settings': (context) => SettingsScreen(),
|
|
},
|
|
);
|
|
}
|
|
}
|