Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix web deployment #61

Merged
merged 1 commit into from
Mar 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/android_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ jobs:
- name: Set up ruby env
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7.2
bundler-cache: true

- name: Retrieve the secret and decode it to a file
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/web_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,13 @@ jobs:
aws-region: ap-south-1

- name: Build Web App
run: flutter build web
run: |
flutter pub cache repair
flutter clean
flutter pub cache clean
flutter pub upgrade
flutter pub get
flutter build web

- name: Deploy to AWS S3
run: aws s3 sync build/web/ s3://${{ secrets.AWS_S3_BUCKET_NAME }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ class AdminEmployeeDetailsLeavesPage extends StatelessWidget {
class AdminEmployeeDetailsLeavesScreen extends StatefulWidget {
final String employeeName;

const AdminEmployeeDetailsLeavesScreen({super.key, required this.employeeName});
const AdminEmployeeDetailsLeavesScreen(
{super.key, required this.employeeName});

@override
State<AdminEmployeeDetailsLeavesScreen> createState() =>
Expand Down
43 changes: 21 additions & 22 deletions lib/ui/admin/members/edit_employee/widgets/role_toggle_button.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ class ToggleButton extends StatelessWidget {
final Role role;
final Function(Role role) onRoleChange;

const ToggleButton({super.key, required this.onRoleChange, required this.role});
const ToggleButton(
{super.key, required this.onRoleChange, required this.role});

@override
Widget build(BuildContext context) {
Expand Down Expand Up @@ -43,28 +44,26 @@ class ToggleButton extends StatelessWidget {
),
),
),
...roleTypeSelectionToggleButtonAlignment.entries
.map(
(roleTypeAlignment) => GestureDetector(
onTap: () => onRoleChange(roleTypeAlignment.key),
child: Align(
alignment: Alignment(roleTypeAlignment.value, 0),
child: Container(
width: width,
color: Colors.transparent,
alignment: Alignment.center,
child: Text(
localization.user_detail_role_type(
roleTypeAlignment.key.name),
textAlign: TextAlign.start,
style: AppTextStyle.style14.copyWith(
color: context.colorScheme.textPrimary,
fontWeight: FontWeight.w700)),
),
),
...roleTypeSelectionToggleButtonAlignment.entries.map(
(roleTypeAlignment) => GestureDetector(
onTap: () => onRoleChange(roleTypeAlignment.key),
child: Align(
alignment: Alignment(roleTypeAlignment.value, 0),
child: Container(
width: width,
color: Colors.transparent,
alignment: Alignment.center,
child: Text(
localization
.user_detail_role_type(roleTypeAlignment.key.name),
textAlign: TextAlign.start,
style: AppTextStyle.style14.copyWith(
color: context.colorScheme.textPrimary,
fontWeight: FontWeight.w700)),
),
)

),
),
)
],
),
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ import '../../../../data/model/space/space.dart';

class SpaceNotifierWidget extends InheritedNotifier<UserStateNotifier> {
const SpaceNotifierWidget(
{super.key, required UserStateNotifier super.notifier, required super.child});
{super.key,
required UserStateNotifier super.notifier,
required super.child});

static Space? of(BuildContext context) {
return context
Expand Down
Loading