-
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.
- Loading branch information
Showing
28 changed files
with
419 additions
and
194 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.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
35 changes: 35 additions & 0 deletions
35
games_richpresence/lib/components/helldivers/atoms/buttons/difficulty_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,35 @@ | ||
import 'package:easy_localization/easy_localization.dart'; | ||
import 'package:flutter/widgets.dart'; | ||
import 'package:games_richpresence/components/helldivers/atoms/buttons/button.dart'; | ||
import 'package:games_richpresence/model/class/game_activities/helldivers/difficulties.dart'; | ||
|
||
class DifficultyButton extends StatefulWidget { | ||
final Difficulties difficulty; | ||
final Function onClick; | ||
const DifficultyButton({super.key, required this.difficulty, required this.onClick}); | ||
|
||
@override | ||
State<DifficultyButton> createState() => _DifficultyButtonState(); | ||
} | ||
|
||
class _DifficultyButtonState extends State<DifficultyButton> { | ||
@override | ||
Widget build(BuildContext context) { | ||
return HelldiversButton( | ||
onClick: () { | ||
widget.onClick(); | ||
}, | ||
child: Container( | ||
height: 30, | ||
width: 300, | ||
child: Row( | ||
children: [ | ||
SizedBox(width: 100, child: Image.asset(widget.difficulty.icon)), | ||
SizedBox(width: 20), | ||
Text(tr(widget.difficulty.name), | ||
style: TextStyle(color: Color.fromRGBO(255, 255, 255, 1), fontSize: 20, fontWeight: FontWeight.bold)) | ||
], | ||
), | ||
)); | ||
} | ||
} |
22 changes: 22 additions & 0 deletions
22
games_richpresence/lib/components/helldivers/atoms/buttons/text_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,22 @@ | ||
import 'package:flutter/widgets.dart'; | ||
import 'package:games_richpresence/components/helldivers/atoms/buttons/button.dart'; | ||
|
||
class HelldiversTextButton extends StatelessWidget { | ||
final String text; | ||
final Function onClick; | ||
const HelldiversTextButton({super.key, required this.text, required this.onClick}); | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
return HelldiversButton( | ||
child: Text( | ||
text, | ||
style: TextStyle( | ||
color: Color.fromRGBO(255, 255, 255, 1), | ||
fontSize: 20, | ||
fontWeight: FontWeight.bold, | ||
), | ||
), | ||
onClick: onClick); | ||
} | ||
} |
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
9 changes: 9 additions & 0 deletions
9
games_richpresence/lib/model/class/game_activities/helldivers/activity.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,9 @@ | ||
import 'package:games_richpresence/model/class/game_activities/helldivers/difficulties.dart'; | ||
import 'package:games_richpresence/model/class/game_activities/helldivers/planets.dart'; | ||
|
||
class HelldiversActivity { | ||
Difficulties? difficulty; | ||
HelldiversPlanet? planet; | ||
|
||
HelldiversActivity({required this.difficulty, required this.planet}); | ||
} |
Oops, something went wrong.