Add titlebar color and constants class

This commit is contained in:
Zontreck 2024-02-10 13:22:56 -07:00
parent bdf384b99c
commit 4b16125cc5
2 changed files with 10 additions and 1 deletions

5
lib/Constants.dart Normal file
View file

@ -0,0 +1,5 @@
import 'package:flutter/material.dart';
class Constants {
static const Color TITLEBAR_COLOR = Color.fromARGB(255, 0, 72, 127);
}

View file

@ -1,4 +1,5 @@
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:vorpal/Constants.dart';
class HomePage extends StatefulWidget { class HomePage extends StatefulWidget {
HomePage({super.key}); HomePage({super.key});
@ -13,7 +14,10 @@ class HomeState extends State<HomePage> {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return Scaffold( return Scaffold(
appBar: AppBar(title: Text("Vorpal")), appBar: AppBar(
title: Text("Vorpal"),
backgroundColor: Constants.TITLEBAR_COLOR,
),
); );
} }
} }