-
Notifications
You must be signed in to change notification settings - Fork 147
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
firgia
committed
Oct 26, 2021
1 parent
71a1cd9
commit 30f460b
Showing
6 changed files
with
90 additions
and
11 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
import 'package:flutter/material.dart'; | ||
import 'package:flutter_svg/flutter_svg.dart'; | ||
import 'package:project_management/app/constans/app_constants.dart'; | ||
|
||
class GetPremiumCard extends StatelessWidget { | ||
const GetPremiumCard({ | ||
required this.onPressed, | ||
this.backgroundColor, | ||
Key? key, | ||
}) : super(key: key); | ||
|
||
final Color? backgroundColor; | ||
final Function() onPressed; | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
return Material( | ||
borderRadius: BorderRadius.circular(kBorderRadius), | ||
color: backgroundColor ?? Theme.of(context).cardColor, | ||
child: InkWell( | ||
borderRadius: BorderRadius.circular(kBorderRadius), | ||
onTap: onPressed, | ||
child: Container( | ||
constraints: const BoxConstraints( | ||
minWidth: 250, | ||
maxWidth: 350, | ||
minHeight: 200, | ||
maxHeight: 200, | ||
), | ||
padding: const EdgeInsets.all(10), | ||
child: Stack( | ||
children: [ | ||
Align( | ||
alignment: Alignment.topRight, | ||
child: SvgPicture.asset( | ||
ImageVectorPath.wavyBus, | ||
width: 180, | ||
height: 180, | ||
fit: BoxFit.contain, | ||
), | ||
), | ||
const Padding( | ||
padding: EdgeInsets.all(15), | ||
child: _Info(), | ||
), | ||
], | ||
), | ||
), | ||
), | ||
); | ||
} | ||
} | ||
|
||
class _Info extends StatelessWidget { | ||
const _Info({Key? key}) : super(key: key); | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
return Column( | ||
mainAxisAlignment: MainAxisAlignment.end, | ||
crossAxisAlignment: CrossAxisAlignment.start, | ||
children: [ | ||
const Text( | ||
"Get\nPremium\nAccount", | ||
style: TextStyle( | ||
fontWeight: FontWeight.bold, | ||
), | ||
), | ||
Text( | ||
"To add more members", | ||
style: Theme.of(context).textTheme.caption, | ||
), | ||
], | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters