You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

41 lines
1.4 KiB

// This file is part of Hamlet Social.
//
// Hamlet Social is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// any later version.
//
// Hamlet Social is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Hamlet Social. If not, see <https://www.gnu.org/licenses/>.
import 'package:flutter/material.dart';
import 'package:hamlet_social/data/instance.dart';
import 'package:hamlet_social/views/unauthenticated/instance_selector.dart';
import 'package:hamlet_social/views/unauthenticated/sign_up.dart';
import 'package:provider/provider.dart';
class WelcomeScreen extends StatelessWidget {
@override
Widget build(BuildContext context) {
List<HamletInstance> hamletInstances =
context.watch<List<HamletInstance>>();
return Scaffold(
appBar: AppBar(
title: const Text('Hamlet'),
),
body: Flex(
children: <Widget>[
Title(child: Text('Welcome to Hamlet!'), color: Colors.black),
InstanceSelector(hamletInstances),
],
direction: Axis.vertical,
),
);
}
}