Skip to content

Commit

Permalink
Fiz deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
cp-sneha-s committed Mar 5, 2024
1 parent 248b659 commit 3c8aaa3
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 25 deletions.
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

0 comments on commit 3c8aaa3

Please sign in to comment.