-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Continue helldivers (adding planets)
- Loading branch information
Showing
44 changed files
with
632 additions
and
101 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.
Binary file not shown.
Binary file added
BIN
+4.63 KB
games_richpresence/assets/helldivers/images/difficulties/challenging.webp
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+5.03 KB
games_richpresence/assets/helldivers/images/difficulties/extreme.webp
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+7.1 KB
games_richpresence/assets/helldivers/images/difficulties/helldive.webp
Binary file not shown.
Binary file added
BIN
+6.08 KB
games_richpresence/assets/helldivers/images/difficulties/impossible.webp
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+5.42 KB
games_richpresence/assets/helldivers/images/difficulties/suicide.webp
Binary file not shown.
Binary file added
BIN
+7.74 KB
games_richpresence/assets/helldivers/images/difficulties/super_helldive.webp
Binary file not shown.
Binary file added
BIN
+2.88 KB
games_richpresence/assets/helldivers/images/difficulties/trivial.webp
Binary file not shown.
Binary file not shown.
46 changes: 46 additions & 0 deletions
46
games_richpresence/lib/components/helldivers/atoms/buttons/button.dart
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,46 @@ | ||
import 'package:flutter/widgets.dart'; | ||
import 'package:games_richpresence/gen/assets.gen.dart'; | ||
|
||
class HelldiversButton extends StatefulWidget { | ||
final String text; | ||
final Function onClick; | ||
|
||
const HelldiversButton({super.key, required this.text, required this.onClick}); | ||
|
||
@override | ||
State<HelldiversButton> createState() => _HelldiversButtonState(); | ||
} | ||
|
||
class _HelldiversButtonState extends State<HelldiversButton> { | ||
@override | ||
Widget build(BuildContext context) { | ||
return MouseRegion( | ||
cursor: SystemMouseCursors.click, | ||
child: GestureDetector( | ||
onTap: () { | ||
widget.onClick(); | ||
}, | ||
child: Container( | ||
decoration: BoxDecoration( | ||
color: Color.fromRGBO(0, 0, 0, 1), | ||
border: Border.all( | ||
color: Color(0xFF30302f), | ||
width: 2, | ||
), | ||
image: DecorationImage( | ||
image: AssetImage(Assets.helldivers.buttons.buttonBackground.path), repeat: ImageRepeat.repeat), | ||
), | ||
padding: EdgeInsets.symmetric(horizontal: 20, vertical: 10), | ||
child: Text( | ||
widget.text, | ||
style: TextStyle( | ||
color: Color.fromRGBO(255, 255, 255, 1), | ||
fontSize: 20, | ||
fontWeight: FontWeight.bold, | ||
), | ||
), | ||
), | ||
), | ||
); | ||
} | ||
} |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Oops, something went wrong.