changed everything from filcnaplo to refilc finally
This commit is contained in:
52
refilc_mobile_ui/lib/premium/components/github_card.dart
Normal file
52
refilc_mobile_ui/lib/premium/components/github_card.dart
Normal file
@@ -0,0 +1,52 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_svg/svg.dart';
|
||||
|
||||
class GithubCard extends StatelessWidget {
|
||||
const GithubCard({super.key, this.onPressed});
|
||||
|
||||
final void Function()? onPressed;
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Card(
|
||||
margin: EdgeInsets.zero,
|
||||
elevation: 0,
|
||||
shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(14.0)),
|
||||
color: const Color(0xff2B2B2B),
|
||||
child: Material(
|
||||
type: MaterialType.transparency,
|
||||
child: InkWell(
|
||||
borderRadius: BorderRadius.circular(14.0),
|
||||
onTap: onPressed,
|
||||
child: Padding(
|
||||
padding: const EdgeInsets.symmetric(horizontal: 16.0, vertical: 12.0).add(const EdgeInsets.only(top: 4.0)),
|
||||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
Row(
|
||||
children: [
|
||||
const Expanded(
|
||||
child: Text(
|
||||
"Támogass minket Githubon, hogy megszerezd a jutalmakat!",
|
||||
style: TextStyle(color: Colors.white),
|
||||
),
|
||||
),
|
||||
SvgPicture.asset("assets/images/github.svg"),
|
||||
],
|
||||
),
|
||||
const SizedBox(height: 4.0),
|
||||
Chip(
|
||||
backgroundColor: Colors.black.withOpacity(.5),
|
||||
label: const Text(
|
||||
"Már támogatsz? Jelentkezz be!",
|
||||
style: TextStyle(color: Colors.white),
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user