mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-07-15 07:56:11 +08:00
Remove onboarding screen
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.
This commit is contained in:
@ -1,8 +1,23 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:journal/state_container.dart';
|
||||
|
||||
class AppDrawer extends StatelessWidget {
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
Widget setupGitButton = new Container();
|
||||
var appState = StateContainer.of(context).appState;
|
||||
|
||||
if (!appState.remoteGitRepoConfigured) {
|
||||
setupGitButton = ListTile(
|
||||
title: new Text('Setup Git Sync'),
|
||||
onTap: () {
|
||||
Navigator.pop(context);
|
||||
// Update the state of the app
|
||||
// ...
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
return new Drawer(
|
||||
child: new ListView(
|
||||
// Important: Remove any padding from the ListView.
|
||||
@ -23,6 +38,7 @@ class AppDrawer extends StatelessWidget {
|
||||
),
|
||||
),
|
||||
),
|
||||
setupGitButton,
|
||||
new ListTile(
|
||||
title: new Text('Share App'),
|
||||
onTap: () {
|
||||
|
Reference in New Issue
Block a user