add titles to aur and builds screens

add storage icon
This commit is contained in:
lukas-heiligenbrunner 2024-02-24 23:48:16 +01:00
parent 4ffb4b2855
commit 0c81399ea1
3 changed files with 14 additions and 14 deletions

View File

@ -6,8 +6,8 @@ import '../../constants/color_constants.dart';
class SideMenu extends StatelessWidget { class SideMenu extends StatelessWidget {
const SideMenu({ const SideMenu({
Key? key, super.key,
}) : super(key: key); });
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
@ -20,13 +20,10 @@ class SideMenu extends StatelessWidget {
child: Column( child: Column(
mainAxisAlignment: MainAxisAlignment.center, mainAxisAlignment: MainAxisAlignment.center,
children: [ children: [
// SizedBox( SizedBox(
// height: defaultPadding * 3, height: defaultPadding,
// ), ),
// Image.asset( Icon(Icons.storage_sharp, size: 60, color: Colors.white54),
// "assets/logo/logo_icon.png",
// scale: 5,
// ),
SizedBox( SizedBox(
height: defaultPadding, height: defaultPadding,
), ),
@ -68,12 +65,11 @@ class SideMenu extends StatelessWidget {
class DrawerListTile extends StatelessWidget { class DrawerListTile extends StatelessWidget {
const DrawerListTile({ const DrawerListTile({
Key? key, super.key,
// For selecting those three line once press "Command+D"
required this.title, required this.title,
required this.svgSrc, required this.svgSrc,
required this.press, required this.press,
}) : super(key: key); });
final String title, svgSrc; final String title, svgSrc;
final VoidCallback press; final VoidCallback press;

View File

@ -36,7 +36,9 @@ class _AurScreenState extends State<AurScreen> {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return Scaffold( return Scaffold(
appBar: AppBar(), appBar: AppBar(
title: const Text("AUR"),
),
body: MultiProvider( body: MultiProvider(
providers: [ providers: [
ChangeNotifierProvider(create: (_) => PackagesProvider()), ChangeNotifierProvider(create: (_) => PackagesProvider()),

View File

@ -12,7 +12,9 @@ class BuildsScreen extends StatelessWidget {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return Scaffold( return Scaffold(
appBar: AppBar(), appBar: AppBar(
title: const Text("All Builds"),
),
body: MultiProvider( body: MultiProvider(
providers: [ providers: [
ChangeNotifierProvider<BuildsProvider>( ChangeNotifierProvider<BuildsProvider>(