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