Add titlebar color and constants class
This commit is contained in:
parent
bdf384b99c
commit
4b16125cc5
2 changed files with 10 additions and 1 deletions
5
lib/Constants.dart
Normal file
5
lib/Constants.dart
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
import 'package:flutter/material.dart';
|
||||||
|
|
||||||
|
class Constants {
|
||||||
|
static const Color TITLEBAR_COLOR = Color.fromARGB(255, 0, 72, 127);
|
||||||
|
}
|
|
@ -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,
|
||||||
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue