Skip to content

Commit

Permalink
🔖 chore(release): beta release
Browse files Browse the repository at this point in the history
  • Loading branch information
fleeser committed Jun 29, 2024
1 parent 2c50860 commit 84a941b
Show file tree
Hide file tree
Showing 196 changed files with 14,405 additions and 652 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.9.0

* Beta release

## 0.0.1

* initial release
1 change: 0 additions & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ We welcome community contributions! If you're thinking of contributing, thank yo

We ask that all contributors abide by our [code of conduct](https://github.com/fleeser/habib_app/blob/production/code_of_conduct.md)


### Opening Issues

We have templates for questions, features, or bug reports, please follow the directions in these templates, but generally:
Expand Down
67 changes: 66 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,66 @@
# Habib App
# Habib App

## Contributors ❤️

We wanna thank everybody that has been contributing to this project!

<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style>
.grid-container {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
gap: 20px;
}
.grid-item {
text-align: center;
}
.profile-img {
width: 100px;
height: 100px;
object-fit: cover;
border-radius: 50%;
border: 2px solid #000; /* optional: füge einen Rahmen hinzu */
display: block;
margin-left: 0; /* Links ausrichten */
}
.profile-text {
margin-top: 10px;
}
</style>
</head>
<body>

<div class="grid-container">
<div class="grid-item">
<img src="https://avatars.githubusercontent.com/u/159424615?v=4" alt="Profilbild 1" class="profile-img">
<div class="profile-text">Name 1</div>
</div>
<div class="grid-item">
<img src="https://avatars.githubusercontent.com/u/159424615?v=4" alt="Profilbild 2" class="profile-img">
<div class="profile-text">Name 2</div>
</div>
<div class="grid-item">
<img src="https://avatars.githubusercontent.com/u/159424615?v=4" alt="Profilbild 3" class="profile-img">
<div class="profile-text">Name 3</div>
</div>
<!-- Füge weitere Profile nach Bedarf hinzu -->
</div>

</body>
</html>



<figure>
<img
src="https://avatars.githubusercontent.com/u/159424615?v=4"
alt="Pascal Stellmacher"
height="auto"
width="50"
style="border-radius:50%">
<figcaption>Pascal Stellmacher</figcaption>
</figure>
10 changes: 10 additions & 0 deletions flutter/lib/core/common/models/error_details.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
class ErrorDetails {

final Object error;
final StackTrace stackTrace;

ErrorDetails({
required this.error,
StackTrace? stackTrace
}) : stackTrace = stackTrace ?? StackTrace.current;
}
4 changes: 2 additions & 2 deletions flutter/lib/core/common/widgets/hb_app_bar.dart
Original file line number Diff line number Diff line change
Expand Up @@ -97,10 +97,10 @@ class HBAppBarButton extends StatelessWidget {
onPressed: onPressed,
enableFeedback: !isLoading && isEnabled,
shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(HBUIConstants.appBarButtonSize / 2.0)),
fillColor: HBColors.gray300,
fillColor: HBColors.gray900,
child: HBIcon(
icon: icon!,
color: HBColors.gray900,
color: HBColors.gray100,
size: HBUIConstants.appBarButtonSize / 2.0
)
)
Expand Down
110 changes: 59 additions & 51 deletions flutter/lib/core/common/widgets/hb_button.dart
Original file line number Diff line number Diff line change
Expand Up @@ -15,20 +15,23 @@ class HBButton extends StatelessWidget {
final HBIcons? icon;
final bool isShrinked;
final bool isOutlined;
final double? maxWidth;

const HBButton.fill({
super.key,
this.onPressed,
this.title,
this.icon,
this.maxWidth
}) : isShrinked = false,
isOutlined = false;

const HBButton.outline({
super.key,
this.onPressed,
this.title,
this.icon
this.icon,
this.maxWidth
}) : isShrinked = false,
isOutlined = true;

Expand All @@ -38,15 +41,17 @@ class HBButton extends StatelessWidget {
this.title,
this.icon,
}) : isShrinked = true,
isOutlined = false;
isOutlined = false,
maxWidth = null;

const HBButton.shrinkOutline({
super.key,
this.onPressed,
this.title,
this.icon
}) : isShrinked = true,
isOutlined = true;
isOutlined = true,
maxWidth = null;

@override
Widget build(BuildContext context) {
Expand All @@ -55,59 +60,62 @@ class HBButton extends StatelessWidget {
? HBUIConstants.buttonShrinkedHeight
: HBUIConstants.buttonHeight;

return SizedBox(
height: buttonHeight,
width: isShrinked
? null
: double.infinity,
child: RawMaterialButton(
onPressed: onPressed,
fillColor: isOutlined
return ConstrainedBox(
constraints: BoxConstraints(maxWidth: maxWidth ?? double.infinity),
child: SizedBox(
height: buttonHeight,
width: isShrinked
? null
: HBColors.gray900,
padding: const EdgeInsets.symmetric(horizontal: HBSpacing.lg),
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(HBUIConstants.defaultBorderRadius),
side: BorderSide(
color: isOutlined
? HBColors.gray900
: Colors.transparent,
width: isOutlined
? 1.5
: 0.0
)
),
child: Row(
mainAxisAlignment: MainAxisAlignment.center,
mainAxisSize: MainAxisSize.min,
children: [
if (icon != null) HBIcon(
icon: icon!,
size: buttonHeight * 0.5,
: double.infinity,
child: RawMaterialButton(
onPressed: onPressed,
fillColor: isOutlined
? null
: HBColors.gray900,
padding: const EdgeInsets.symmetric(horizontal: HBSpacing.lg),
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(HBUIConstants.defaultBorderRadius),
side: BorderSide(
color: isOutlined
? HBColors.gray900
: HBColors.gray100
),
if (icon != null && title != null) const HBGap.md(),
if (title != null) Flexible(
child: Text(
title!,
maxLines: 1,
overflow: TextOverflow.ellipsis,
style: HBTypography.base.copyWith(
fontSize: isShrinked
? 14.0
: 16.0,
fontWeight: isShrinked
? FontWeight.w400
: FontWeight.w600,
color: isOutlined
? HBColors.gray900
: HBColors.gray100
: Colors.transparent,
width: isOutlined
? 1.5
: 0.0
)
),
child: Row(
mainAxisAlignment: MainAxisAlignment.center,
mainAxisSize: MainAxisSize.min,
children: [
if (icon != null) HBIcon(
icon: icon!,
size: buttonHeight * 0.5,
color: isOutlined
? HBColors.gray900
: HBColors.gray100
),
if (icon != null && title != null) const HBGap.md(),
if (title != null) Flexible(
child: Text(
title!,
maxLines: 1,
overflow: TextOverflow.ellipsis,
style: HBTypography.base.copyWith(
fontSize: isShrinked
? 14.0
: 16.0,
fontWeight: isShrinked
? FontWeight.w400
: FontWeight.w600,
color: isOutlined
? HBColors.gray900
: HBColors.gray100
)
)
)
)
]
]
)
)
)
);
Expand Down
47 changes: 47 additions & 0 deletions flutter/lib/core/common/widgets/hb_checkbox.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
import 'package:flutter/material.dart';

import 'package:habib_app/core/common/widgets/hb_gap.dart';
import 'package:habib_app/core/res/theme/colors/hb_colors.dart';
import 'package:habib_app/core/res/theme/typography/hb_typography.dart';

class HBCheckbox extends StatelessWidget {

final void Function(bool?)? onChanged;
final bool isSelected;
final String text;

const HBCheckbox({
super.key,
this.onChanged,
this.isSelected = false,
required this.text
});

@override
Widget build(BuildContext context) {
return Row(
children: [
Checkbox(
value: isSelected,
onChanged: onChanged,
checkColor: HBColors.gray900,
fillColor: const WidgetStatePropertyAll(HBColors.gray300),
side: BorderSide.none,
),
const HBGap.lg(),
Flexible(
child: Text(
text,
maxLines: 1,
overflow: TextOverflow.ellipsis,
style: HBTypography.base.copyWith(
color: HBColors.gray900,
fontWeight: FontWeight.w400,
fontSize: 14.0
)
)
)
]
);
}
}
Loading

0 comments on commit 84a941b

Please sign in to comment.