mirror of
https://github.com/revanced/revanced-manager
synced 2024-05-14 13:56:57 +02:00
44 lines
1.2 KiB
Dart
44 lines
1.2 KiB
Dart
|
import 'package:flutter/material.dart';
|
||
|
import 'package:google_fonts/google_fonts.dart';
|
||
|
import 'package:revanced_manager_flutter/constants.dart';
|
||
|
|
||
|
class AppSelectorCard extends StatelessWidget {
|
||
|
final Function()? onPressed;
|
||
|
const AppSelectorCard({
|
||
|
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 application",
|
||
|
style: GoogleFonts.roboto(
|
||
|
fontSize: 18,
|
||
|
fontWeight: FontWeight.w500,
|
||
|
),
|
||
|
),
|
||
|
const SizedBox(height: 10),
|
||
|
Text(
|
||
|
"No application selected",
|
||
|
style: robotoTextStyle,
|
||
|
),
|
||
|
],
|
||
|
),
|
||
|
),
|
||
|
);
|
||
|
}
|
||
|
}
|