revanced-manager/lib/ui/screens/home_screen.dart
2022-08-01 01:16:27 +05:30

75 lines
2.3 KiB
Dart

import 'package:flutter/material.dart';
import 'package:google_fonts/google_fonts.dart';
import 'package:revanced_manager_flutter/ui/widgets/available_update.dart';
import 'package:revanced_manager_flutter/ui/widgets/installed_apps.dart';
import 'package:revanced_manager_flutter/ui/widgets/latest_commit.dart';
class HomeScreen extends StatelessWidget {
const HomeScreen({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
return Scaffold(
body: SafeArea(
child: SingleChildScrollView(
child: Padding(
padding: const EdgeInsets.symmetric(
vertical: 0.0,
horizontal: 20.0,
),
child: Column(
children: [
Align(
alignment: Alignment.topRight,
child: IconButton(
onPressed: () {},
icon: const Icon(
Icons.more_vert,
),
),
),
const SizedBox(height: 60),
Align(
alignment: Alignment.topLeft,
child: Text(
"Dashboard",
style: GoogleFonts.inter(
fontSize: 28,
),
),
),
const SizedBox(height: 23),
Align(
alignment: Alignment.topLeft,
child: Text(
"ReVanced Updates",
style: GoogleFonts.inter(
fontSize: 18,
),
),
),
const SizedBox(height: 10),
const LatestCommitWidget(),
const SizedBox(height: 14),
Align(
alignment: Alignment.topLeft,
child: Text(
"Patched Applications",
style: GoogleFonts.inter(
fontSize: 18,
),
),
),
const SizedBox(height: 14),
const AvailableUpdatesWidget(),
const SizedBox(height: 15),
const InstalledAppsWidget(),
],
),
),
),
),
);
}
}