revanced-manager/lib/ui/screens/home_screen.dart

70 lines
2.2 KiB
Dart
Raw Normal View History

2022-07-30 21:20:36 +02:00
import 'package:flutter/material.dart';
2022-07-31 10:00:11 +02:00
import 'package:google_fonts/google_fonts.dart';
2022-08-01 21:05:11 +02:00
import 'package:revanced_manager_flutter/backend/api/manager_api.dart';
2022-08-01 20:15:55 +02:00
import 'package:revanced_manager_flutter/ui/widgets/available_updates_card.dart';
import 'package:revanced_manager_flutter/ui/widgets/installed_apps_card.dart';
import 'package:revanced_manager_flutter/ui/widgets/latest_commit_card.dart';
2022-07-30 21:20:36 +02:00
class HomeScreen extends StatelessWidget {
const HomeScreen({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
return Scaffold(
2022-07-31 10:00:11 +02:00
body: SafeArea(
child: SingleChildScrollView(
child: Padding(
padding: const EdgeInsets.symmetric(
vertical: 0.0,
horizontal: 20.0,
),
child: Column(
2022-08-01 14:24:05 +02:00
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Align(
alignment: Alignment.topRight,
child: IconButton(
2022-08-01 21:05:11 +02:00
onPressed: () {
getPath();
},
2022-07-31 10:00:11 +02:00
icon: const Icon(
Icons.more_vert,
),
),
),
const SizedBox(height: 60),
2022-08-01 14:24:05 +02:00
Text(
"Dashboard",
style: GoogleFonts.inter(
fontSize: 28,
),
),
const SizedBox(height: 23),
2022-08-01 14:24:05 +02:00
Text(
"ReVanced Updates",
style: GoogleFonts.inter(
fontSize: 18,
),
),
const SizedBox(height: 10),
2022-08-01 20:15:55 +02:00
const LatestCommitCard(),
const SizedBox(height: 14),
2022-08-01 14:24:05 +02:00
Text(
"Patched Applications",
style: GoogleFonts.inter(
fontSize: 18,
2022-07-31 10:00:11 +02:00
),
),
const SizedBox(height: 14),
2022-08-01 20:15:55 +02:00
const AvailableUpdatesCard(),
const SizedBox(height: 15),
2022-08-01 20:15:55 +02:00
const InstalledAppsCard(),
],
),
2022-07-31 10:00:11 +02:00
),
),
2022-07-30 21:20:36 +02:00
),
);
}
}