import 'package:flutter/material.dart'; import 'package:preferences/preferences.dart'; // TODO: Add the search button here // TODO: Display possible errors here class SettingsScreen extends StatelessWidget { @override Widget build(BuildContext context) { return Scaffold( appBar: AppBar(title: Text('Settings')), body: PreferencePage([ PreferenceTitle('GitHub'), PreferenceText( 'Provide a valid GitHub repository with username and project (username/repository-name). This repository must contain warband roster files in subfolders. See the sample project for a kickstart.'), TextFieldPreference('Repository', 'repository'), PreferenceText( 'If your warband folders are placed in a subfolder, you can specify it here.'), TextFieldPreference('Path', 'path', defaultVal: '/') ])); //String _repository = 'Labernator/Mordheim'; //String _path = 'Mordheim-BorderTownBurning/Warband Rosters'; } }