mirror of
https://github.com/ReVanced/revanced-manager.git
synced 2024-11-10 09:07:47 +01:00
94 lines
3 KiB
Dart
94 lines
3 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/application_item.dart';
|
|
import 'package:revanced_manager/ui/widgets/patch_text_button.dart';
|
|
|
|
class AvailableUpdatesCard extends StatelessWidget {
|
|
final Color? color;
|
|
const AvailableUpdatesCard({
|
|
Key? key,
|
|
this.color = const Color(0xff1B222B),
|
|
}) : super(key: key);
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Container(
|
|
decoration: BoxDecoration(
|
|
borderRadius: BorderRadius.circular(12),
|
|
color: color,
|
|
),
|
|
padding: const EdgeInsets.symmetric(vertical: 18, horizontal: 12),
|
|
child: Column(
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
mainAxisAlignment: MainAxisAlignment.start,
|
|
children: [
|
|
Padding(
|
|
padding: const EdgeInsets.symmetric(horizontal: 12.0),
|
|
child: Row(
|
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
|
children: [
|
|
I18nText(
|
|
'availableUpdatesCard.widgetTitle',
|
|
child: Text(
|
|
'',
|
|
style: GoogleFonts.inter(
|
|
fontSize: 16,
|
|
color: Theme.of(context).colorScheme.secondary,
|
|
fontWeight: FontWeight.w500,
|
|
),
|
|
),
|
|
),
|
|
PatchTextButton(
|
|
text: FlutterI18n.translate(
|
|
context,
|
|
'availableUpdatesCard.patchButton',
|
|
),
|
|
onPressed: () => {},
|
|
backgroundColor: Theme.of(context).colorScheme.secondary,
|
|
),
|
|
],
|
|
),
|
|
),
|
|
ApplicationItem(
|
|
asset: 'assets/images/revanced.svg',
|
|
name: 'ReVanced',
|
|
releaseDate: '2 days ago',
|
|
onPressed: () => {},
|
|
),
|
|
ApplicationItem(
|
|
asset: 'assets/images/reddit.png',
|
|
name: 'ReReddit',
|
|
releaseDate: 'Released 1 month ago',
|
|
onPressed: () => {},
|
|
),
|
|
const SizedBox(height: 4),
|
|
I18nText(
|
|
'availableUpdatesCard.changelogLabel',
|
|
child: Text(
|
|
'',
|
|
style: GoogleFonts.roboto(
|
|
color: Theme.of(context).colorScheme.tertiary,
|
|
fontWeight: FontWeight.w700,
|
|
),
|
|
),
|
|
),
|
|
const SizedBox(height: 4),
|
|
Text(
|
|
'fix: we made the player even worse (you love)',
|
|
style: GoogleFonts.roboto(
|
|
color: Theme.of(context).colorScheme.tertiary,
|
|
),
|
|
),
|
|
const SizedBox(height: 4),
|
|
Text(
|
|
'chore: guhhughghu',
|
|
style: GoogleFonts.roboto(
|
|
color: Theme.of(context).colorScheme.tertiary,
|
|
),
|
|
),
|
|
],
|
|
),
|
|
);
|
|
}
|
|
}
|