add page for aur search

install aur package by button click
This commit is contained in:
2024-01-27 14:51:45 +01:00
parent bb34e56be0
commit c924a151cb
11 changed files with 262 additions and 36 deletions

View File

@ -1,3 +1,4 @@
import 'package:aurcache/screens/aur_screen.dart';
import 'package:aurcache/screens/build_screen.dart';
import 'package:aurcache/screens/builds_screen.dart';
import 'package:aurcache/screens/dashboard_screen.dart';
@ -40,6 +41,10 @@ final appRouter = GoRouter(
path: '/packages',
builder: (context, state) => const PackagesScreen(),
),
GoRoute(
path: '/aur',
builder: (context, state) => AurScreen(),
),
GoRoute(
path: '/package/:id',
builder: (context, state) {

View File

@ -43,12 +43,16 @@ class SideMenu extends StatelessWidget {
DrawerListTile(
title: "Builds",
svgSrc: "assets/icons/menu_tran.svg",
press: () {},
press: () {
context.go("/builds");
},
),
DrawerListTile(
title: "AUR",
svgSrc: "assets/icons/menu_task.svg",
press: () {},
press: () {
context.go("/aur");
},
),
DrawerListTile(
title: "Settings",