revanced-manager/lib/ui/widgets/available_updates_card.dart

88 lines
2.7 KiB
Dart
Raw Normal View History

import 'package:flutter/material.dart';
2022-08-07 01:37:12 +02:00
import 'package:flutter_i18n/flutter_i18n.dart';
import 'package:google_fonts/google_fonts.dart';
2022-08-06 23:35:35 +02:00
import 'package:revanced_manager/ui/widgets/application_item.dart';
import 'package:revanced_manager/ui/widgets/patch_text_button.dart';
2022-08-01 20:15:55 +02:00
class AvailableUpdatesCard extends StatelessWidget {
const AvailableUpdatesCard({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
return Container(
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(12),
color: const Color(0xff1B222B),
),
padding: const EdgeInsets.symmetric(vertical: 18, horizontal: 20),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
mainAxisAlignment: MainAxisAlignment.start,
children: [
Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
2022-08-07 01:37:12 +02:00
I18nText(
'availableUpdatesCard.widgetTitle',
child: Text(
'',
style: GoogleFonts.inter(
fontSize: 16,
color: const Color(0xff7792BA),
fontWeight: FontWeight.w500,
),
),
),
2022-08-01 13:30:06 +02:00
PatchTextButton(
2022-08-07 01:37:12 +02:00
text: FlutterI18n.translate(
context,
'availableUpdatesCard.patchButton',
),
onPressed: () => {},
2022-08-01 13:30:06 +02:00
backgroundColor: const Color(0xff7792BA),
),
],
),
2022-08-01 20:15:55 +02:00
ApplicationItem(
2022-08-07 01:37:12 +02:00
asset: 'assets/images/revanced.svg',
name: 'ReVanced',
releaseDate: '2 days ago',
onPressed: () => {},
),
2022-08-01 20:15:55 +02:00
ApplicationItem(
2022-08-07 01:37:12 +02:00
asset: 'assets/images/reddit.png',
name: 'ReReddit',
releaseDate: 'Released 1 month ago',
onPressed: () => {},
),
const SizedBox(height: 4),
2022-08-07 01:37:12 +02:00
I18nText(
'availableUpdatesCard.changelogLabel',
child: Text(
'',
style: GoogleFonts.roboto(
color: const Color(0xff8691A0),
fontWeight: FontWeight.w700,
),
),
),
const SizedBox(height: 4),
Text(
2022-08-07 01:37:12 +02:00
'fix: we made the player even worse (you love)',
style: GoogleFonts.roboto(
color: const Color(0xff8691A0),
),
),
const SizedBox(height: 4),
Text(
2022-08-07 01:37:12 +02:00
'chore: guhhughghu',
style: GoogleFonts.roboto(
color: const Color(0xff8691A0),
),
),
],
),
);
}
}