mirror of
https://github.com/rainloreley/shlink-manager.git
synced 2024-11-12 22:45:13 +01:00
39 lines
944 B
Dart
39 lines
944 B
Dart
import 'package:flutter/material.dart';
|
|
import 'globals.dart' as globals;
|
|
|
|
class HomeView extends StatefulWidget {
|
|
const HomeView({Key? key}) : super(key: key);
|
|
|
|
@override
|
|
State<HomeView> createState() => _HomeViewState();
|
|
}
|
|
|
|
class _HomeViewState extends State<HomeView> {
|
|
|
|
@override
|
|
void initState() {
|
|
// TODO: implement initState
|
|
super.initState();
|
|
}
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Scaffold(
|
|
body: CustomScrollView(
|
|
slivers: [
|
|
SliverAppBar.medium(
|
|
expandedHeight: 160,
|
|
title: Column(
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
children: [
|
|
Text("Shlink", style: TextStyle(fontWeight: FontWeight.bold)),
|
|
Text(globals.serverManager.getServerUrl(), style: TextStyle(fontSize: 16, color: Colors.grey[600]))
|
|
],
|
|
),
|
|
)
|
|
],
|
|
),
|
|
);
|
|
}
|
|
}
|