Use a consistent header on each page.
This commit is contained in:
parent
1966f72c93
commit
d9f8536f26
@ -3,6 +3,9 @@ import '/models/item_type.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:url_launcher/url_launcher_string.dart';
|
||||
|
||||
// Local
|
||||
import '/widgets/cards.dart';
|
||||
|
||||
_launchSite(String url) async {
|
||||
try {
|
||||
if (await canLaunchUrlString(url)) {
|
||||
@ -39,6 +42,7 @@ class HelpPage extends StatelessWidget {
|
||||
),
|
||||
child: Column(
|
||||
children: [
|
||||
TitleCard(title: "Help"),
|
||||
Text(
|
||||
"\t\t This app is meant to be a simple budgeting tool,"
|
||||
" allowing you to view your income and expenses at a high"
|
||||
|
@ -1,6 +1,5 @@
|
||||
// Flutter
|
||||
import 'dart:async';
|
||||
|
||||
import 'package:flutter/material.dart';
|
||||
import '/models/item_type.dart';
|
||||
|
||||
|
@ -9,6 +9,7 @@ import '/models/item_type.dart';
|
||||
import '/models/expense.dart';
|
||||
import '/models/frequency.dart';
|
||||
import '/db.dart';
|
||||
import '/widgets/cards.dart';
|
||||
|
||||
class TrackedItemPage extends StatefulWidget {
|
||||
final ItemType assetType;
|
||||
@ -64,14 +65,7 @@ class _TrackedItemPageState extends State<TrackedItemPage> {
|
||||
)
|
||||
: Column(
|
||||
children: [
|
||||
Text(
|
||||
"${widget.assetType.plural}",
|
||||
style: TextStyle(
|
||||
fontSize: 24.0,
|
||||
decoration: TextDecoration.underline,
|
||||
fontWeight: FontWeight.bold,
|
||||
),
|
||||
),
|
||||
TitleCard(title: widget.assetType.plural),
|
||||
/*Text(
|
||||
"${widget.assetType.description}",
|
||||
style: TextStyle(
|
||||
|
@ -1,3 +1,4 @@
|
||||
// Flutter
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
class TitleCard extends StatelessWidget {
|
||||
@ -15,7 +16,11 @@ class TitleCard extends StatelessWidget {
|
||||
child: Center(
|
||||
child: Text(
|
||||
title,
|
||||
style: TextStyle(fontSize: 20),
|
||||
style: TextStyle(
|
||||
fontSize: 20,
|
||||
fontWeight: FontWeight.bold,
|
||||
decoration: TextDecoration.underline,
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
|
Loading…
x
Reference in New Issue
Block a user