2024-11-05 01:30:46 +01:00
|
|
|
// 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
|
|
|
|
|
2024-05-25 00:17:21 +02:00
|
|
|
import 'package:flutter/material.dart';
|
2024-11-05 01:30:46 +01:00
|
|
|
import 'dart:io';
|
|
|
|
|
|
|
|
import 'package:gophershy/gopher_browser.dart';
|
2024-05-25 00:17:21 +02:00
|
|
|
|
|
|
|
void main() {
|
2024-11-05 01:30:46 +01:00
|
|
|
runApp(const GopherShy());
|
2024-05-25 00:17:21 +02:00
|
|
|
}
|
|
|
|
|
2024-11-05 01:30:46 +01:00
|
|
|
class GopherShy extends StatelessWidget {
|
|
|
|
const GopherShy({super.key});
|
2024-05-25 00:17:21 +02:00
|
|
|
|
|
|
|
// This widget is the root of your application.
|
|
|
|
@override
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
return MaterialApp(
|
2024-11-05 01:30:46 +01:00
|
|
|
title: 'GopherShy',
|
2024-05-25 00:17:21 +02:00
|
|
|
theme: ThemeData(
|
|
|
|
colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
|
|
|
|
useMaterial3: true,
|
|
|
|
),
|
2024-11-05 01:30:46 +01:00
|
|
|
home: SafeArea(
|
|
|
|
child: Scaffold(
|
|
|
|
appBar: PreferredSize(
|
|
|
|
preferredSize: Size.fromHeight(50),
|
|
|
|
child: Text(
|
|
|
|
"Whoaaaaa",
|
|
|
|
style: TextStyle(fontSize: 50),
|
|
|
|
),
|
2024-05-25 00:17:21 +02:00
|
|
|
),
|
2024-11-05 01:30:46 +01:00
|
|
|
// In future replace with bookmark view
|
|
|
|
body: GopherBrowser(initialUrl: "gopher://treebrary.org"),
|
|
|
|
)),
|
2024-05-25 00:17:21 +02:00
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|