GopherShy/lib/main.dart

40 lines
1 KiB
Dart

// Warnings ignored for development, we can spit 'const' everywhere
// once it will matter
// ignore_for_file: prefer_const_constructors, prefer_const_literals_to_create_immutables
import 'package:flutter/material.dart';
import 'dart:io';
import 'package:gophershy/gopher_browser.dart';
void main() {
runApp(const GopherShy());
}
class GopherShy extends StatelessWidget {
const GopherShy({super.key});
// This widget is the root of your application.
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'GopherShy',
theme: ThemeData(
colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
useMaterial3: true,
),
home: SafeArea(
child: Scaffold(
appBar: PreferredSize(
preferredSize: Size.fromHeight(50),
child: Text(
"Whoaaaaa",
style: TextStyle(fontSize: 50),
),
),
// In future replace with bookmark view
body: GopherBrowser(initialUrl: "gopher://treebrary.org"),
)),
);
}
}