mirror of
https://github.com/revanced/revanced-manager
synced 2024-05-14 13:56:57 +02:00
79 lines
2.6 KiB
Dart
79 lines
2.6 KiB
Dart
import 'package:flutter/material.dart';
|
|
import 'package:flutter_i18n/flutter_i18n.dart';
|
|
import 'package:google_fonts/google_fonts.dart';
|
|
import 'package:revanced_manager/ui/widgets/available_updates_card.dart';
|
|
import 'package:revanced_manager/ui/widgets/installed_apps_card.dart';
|
|
import 'package:revanced_manager/ui/widgets/latest_commit_card.dart';
|
|
import 'package:stacked/stacked.dart';
|
|
import 'home_viewmodel.dart';
|
|
|
|
class HomeView extends StatelessWidget {
|
|
const HomeView({Key? key}) : super(key: key);
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return ViewModelBuilder.reactive(
|
|
builder: (context, model, child) => Scaffold(
|
|
body: SafeArea(
|
|
child: SingleChildScrollView(
|
|
child: Padding(
|
|
padding: const EdgeInsets.symmetric(horizontal: 20.0),
|
|
child: Column(
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
children: [
|
|
Align(
|
|
alignment: Alignment.topRight,
|
|
child: IconButton(
|
|
onPressed: () {},
|
|
icon: const Icon(
|
|
Icons.more_vert,
|
|
),
|
|
),
|
|
),
|
|
const SizedBox(height: 60),
|
|
I18nText(
|
|
'homeView.widgetTitle',
|
|
child: Text(
|
|
'',
|
|
style: GoogleFonts.inter(
|
|
fontSize: 28,
|
|
),
|
|
),
|
|
),
|
|
const SizedBox(height: 23),
|
|
I18nText(
|
|
'homeView.updatesSubtitle',
|
|
child: Text(
|
|
'',
|
|
style: GoogleFonts.inter(
|
|
fontSize: 18,
|
|
),
|
|
),
|
|
),
|
|
const SizedBox(height: 10),
|
|
const LatestCommitCard(),
|
|
const SizedBox(height: 14),
|
|
I18nText(
|
|
'homeView.patchedSubtitle',
|
|
child: Text(
|
|
'',
|
|
style: GoogleFonts.inter(
|
|
fontSize: 18,
|
|
),
|
|
),
|
|
),
|
|
const SizedBox(height: 14),
|
|
const AvailableUpdatesCard(),
|
|
const SizedBox(height: 15),
|
|
const InstalledAppsCard(),
|
|
],
|
|
),
|
|
),
|
|
),
|
|
),
|
|
),
|
|
viewModelBuilder: () => HomeViewModel(),
|
|
);
|
|
}
|
|
}
|