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

44 lines
1.2 KiB
Dart
Raw Normal View History

2022-08-02 10:33:46 +02:00
import 'package:flutter/material.dart';
import 'package:google_fonts/google_fonts.dart';
2022-08-06 23:35:35 +02:00
import 'package:revanced_manager/constants.dart';
2022-08-02 10:33:46 +02:00
class PatchSelectorCard extends StatelessWidget {
final Function()? onPressed;
const PatchSelectorCard({
Key? key,
this.onPressed,
}) : super(key: key);
@override
Widget build(BuildContext context) {
return GestureDetector(
onTap: onPressed,
child: Container(
width: double.infinity,
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(12),
color: const Color(0xff1B222B),
),
padding: const EdgeInsets.symmetric(vertical: 18, horizontal: 20),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text(
"Select patches",
style: GoogleFonts.roboto(
fontSize: 18,
fontWeight: FontWeight.w500,
),
),
const SizedBox(height: 10),
Text(
"Select an application first.",
style: robotoTextStyle,
),
],
),
),
);
}
}