-
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.
Frontend: Implement WIP widget and update asset folder names
- Loading branch information
1 parent
cf0e0da
commit 5329b37
Showing
56 changed files
with
136 additions
and
80 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
Binary file not shown.
File renamed without changes
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
import 'package:flutter/material.dart'; | ||
import 'package:frontend/common/view/app_colors.dart'; | ||
import 'package:frontend/constants/assets.dart'; | ||
import 'package:frontend/features/main/view/main_screen.dart'; | ||
import 'package:frontend/utils/constants.dart'; | ||
|
||
class InProgressAnimation extends StatelessWidget { | ||
const InProgressAnimation({super.key}); | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
return SingleChildScrollView( | ||
child: Column( | ||
children: [ | ||
Container( | ||
constraints: const BoxConstraints(maxWidth: 500, maxHeight: 500), | ||
padding: const EdgeInsets.symmetric(horizontal: 40), | ||
child: Image.asset(Assets.imageInProgress), | ||
), | ||
const SizedBox(height: 24), | ||
Padding( | ||
padding: const EdgeInsets.symmetric(horizontal: 20), | ||
child: Text( | ||
'🚧\nThis feature is a work-in-progress', | ||
style: TextStyle( | ||
color: appColors.secondaryDark, | ||
fontFamily: Constants.fontDMSerifDisplay, | ||
fontSize: 24, | ||
), | ||
textAlign: TextAlign.center, | ||
), | ||
), | ||
SizedBox(height: MainScreen.bottomNavBarHeight(context)), | ||
], | ||
), | ||
); | ||
} | ||
} |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,12 @@ | ||
import 'package:flutter/material.dart'; | ||
import 'package:flutter_riverpod/flutter_riverpod.dart'; | ||
import 'package:frontend/common/view/in_progress_animation.dart'; | ||
|
||
class CollabScreen extends ConsumerWidget { | ||
const CollabScreen({super.key}); | ||
|
||
@override | ||
Widget build(BuildContext context, WidgetRef ref) { | ||
return const Scaffold( | ||
body: Center( | ||
child: Text('Collab'), | ||
), | ||
); | ||
return const Scaffold(body: Center(child: InProgressAnimation())); | ||
} | ||
} |
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
14 changes: 14 additions & 0 deletions
14
frontend/lib/features/home/provider/home_screen_provider.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,14 @@ | ||
import 'package:core/models/auth/dta_user.dart'; | ||
import 'package:frontend/features/auth/provider/auth_providers.dart'; | ||
import 'package:frontend/utils/extensions.dart'; | ||
import 'package:riverpod_annotation/riverpod_annotation.dart'; | ||
|
||
part 'home_screen_provider.g.dart'; | ||
|
||
@riverpod | ||
FutureOr<DTAUser> userProfile(UserProfileRef ref) async { | ||
final authService = ref.watch(authServiceProvider); | ||
final response = await authService.getUserProfile(); | ||
if (response.hasError) throw Exception(response.errorMessage); | ||
return response.data; | ||
} |
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,12 @@ | ||
import 'package:flutter/material.dart'; | ||
import 'package:flutter_riverpod/flutter_riverpod.dart'; | ||
import 'package:frontend/common/view/in_progress_animation.dart'; | ||
|
||
class InspireScreen extends ConsumerWidget { | ||
const InspireScreen({super.key}); | ||
|
||
@override | ||
Widget build(BuildContext context, WidgetRef ref) { | ||
return const Scaffold( | ||
body: Center( | ||
child: Text('Inspire'), | ||
), | ||
); | ||
return const Scaffold(body: Center(child: InProgressAnimation())); | ||
} | ||
} |
Oops, something went wrong.