-
Notifications
You must be signed in to change notification settings - Fork 19
Hatching UI requirements #20
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
Merged
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.
This file contains hidden or 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,5 @@ | ||
| <?xml version="1.0" encoding="utf-8"?> | ||
| <adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android"> | ||
| <background android:drawable="@color/ic_launcher_background"/> | ||
| <foreground android:drawable="@drawable/ic_launcher_foreground"/> | ||
| </adaptive-icon> |
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 hidden or 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,4 @@ | ||
| <?xml version="1.0" encoding="utf-8"?> | ||
| <resources> | ||
| <color name="ic_launcher_background">#000000</color> | ||
| </resources> |
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 hidden or 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
Binary file modified
BIN
+124 KB
(1300%)
ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+8 Bytes
(100%)
ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+650 Bytes
(260%)
ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+1.37 KB
(410%)
ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+235 Bytes
(180%)
ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+1.28 KB
(380%)
ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+2.34 KB
(440%)
ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+650 Bytes
(260%)
ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+2.12 KB
(470%)
ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+3.87 KB
(560%)
ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png
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.
Oops, something went wrong.
Oops, something went wrong.
Binary file modified
BIN
+3.87 KB
(560%)
ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png
Oops, something went wrong.
Binary file modified
BIN
+6.68 KB
(510%)
ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Binary file modified
BIN
+1.8 KB
(340%)
ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png
Oops, something went wrong.
Binary file modified
BIN
+5.42 KB
(550%)
ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png
Oops, something went wrong.
Binary file modified
BIN
+6.09 KB
(540%)
ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png
Oops, something went wrong.
This file contains hidden or 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,227 @@ | ||
| import 'package:flutter/material.dart'; | ||
| import 'package:url_launcher/url_launcher.dart'; | ||
| import 'package:tree_planting_protocol/utils/constants/ui/color_constants.dart'; | ||
|
|
||
| class StabilityNexusFooterDialog extends StatelessWidget { | ||
| const StabilityNexusFooterDialog({super.key}); | ||
|
|
||
| @override | ||
| Widget build(BuildContext context) { | ||
| final colors = getThemeColors(context); | ||
|
|
||
| return Dialog( | ||
| backgroundColor: Colors.white, | ||
| shape: RoundedRectangleBorder( | ||
| borderRadius: BorderRadius.circular(20), | ||
| side: BorderSide( | ||
| color: Colors.black, | ||
| width: 3, | ||
| ), | ||
| ), | ||
| child: Container( | ||
| padding: const EdgeInsets.all(24), | ||
| constraints: const BoxConstraints(maxWidth: 500), | ||
| decoration: BoxDecoration( | ||
| color: Colors.white, | ||
| borderRadius: BorderRadius.circular(20), | ||
| ), | ||
| child: Column( | ||
| mainAxisSize: MainAxisSize.min, | ||
| crossAxisAlignment: CrossAxisAlignment.center, | ||
| children: [ | ||
| Row( | ||
| mainAxisAlignment: MainAxisAlignment.spaceBetween, | ||
| children: [ | ||
| const Spacer(), | ||
| Text( | ||
| 'About Us', | ||
| style: TextStyle( | ||
| fontSize: 22, | ||
| fontWeight: FontWeight.bold, | ||
| color: Colors.black, | ||
| ), | ||
| ), | ||
| const Spacer(), | ||
| IconButton( | ||
| icon: Icon(Icons.close, color: Colors.black), | ||
| onPressed: () => Navigator.of(context).pop(), | ||
| padding: EdgeInsets.zero, | ||
| constraints: const BoxConstraints(), | ||
| ), | ||
| ], | ||
| ), | ||
| const SizedBox(height: 16), | ||
| Text( | ||
| 'The Treee Protocol was developed by the Stability Nexus. We are an organization working to make the world more stable.', | ||
| textAlign: TextAlign.center, | ||
| style: TextStyle( | ||
| fontSize: 14, | ||
| color: Colors.black87, | ||
| ), | ||
| ), | ||
| const SizedBox(height: 24), | ||
| Text( | ||
| 'Connect with us:', | ||
| style: TextStyle( | ||
| fontSize: 16, | ||
| fontWeight: FontWeight.w600, | ||
| color: Colors.black, | ||
| ), | ||
| ), | ||
| const SizedBox(height: 16), | ||
| _buildSocialLinks(context, colors), | ||
| const SizedBox(height: 16), | ||
| Row( | ||
| mainAxisAlignment: MainAxisAlignment.center, | ||
| children: [ | ||
| Material( | ||
| elevation: 4, | ||
| borderRadius: BorderRadius.circular(12), | ||
| child: ElevatedButton( | ||
| onPressed: () => Navigator.of(context).pop(), | ||
| style: ElevatedButton.styleFrom( | ||
| backgroundColor: colors['secondary'], | ||
| foregroundColor: Colors.black, | ||
| padding: const EdgeInsets.symmetric( | ||
| horizontal: 24, vertical: 12), | ||
| elevation: 0, | ||
| shape: RoundedRectangleBorder( | ||
| borderRadius: BorderRadius.circular(12), | ||
| side: BorderSide(color: Colors.black, width: 2), | ||
| ), | ||
| ), | ||
| child: const Text('Close', | ||
| style: TextStyle(fontWeight: FontWeight.bold)), | ||
| ), | ||
| ), | ||
| ], | ||
| ), | ||
| ], | ||
| ), | ||
| ), | ||
| ); | ||
| } | ||
|
|
||
| Widget _buildSocialLinks(BuildContext context, Map<String, Color> colors) { | ||
| final links = [ | ||
| { | ||
| 'name': 'Website', | ||
| 'url': 'https://stability.nexus/', | ||
| 'icon': Icons.language, | ||
| 'useSecondary': true, | ||
| }, | ||
| { | ||
| 'name': 'X (Twitter)', | ||
| 'url': 'https://x.com/StabilityNexus', | ||
| 'icon': Icons.close, // X icon | ||
| 'useSecondary': false, | ||
| }, | ||
| { | ||
| 'name': 'LinkedIn', | ||
| 'url': 'https://linkedin.com/company/stability-nexus', | ||
| 'icon': Icons.business, | ||
| 'useSecondary': true, | ||
| }, | ||
| { | ||
| 'name': 'GitHub', | ||
| 'url': 'https://github.com/StabilityNexus', | ||
| 'icon': Icons.code, | ||
| 'useSecondary': false, | ||
| }, | ||
| { | ||
| 'name': 'Discord', | ||
| 'url': 'https://discord.com/invite/YzDKeEfWtS', | ||
| 'icon': Icons.chat, | ||
| 'useSecondary': true, | ||
| }, | ||
| { | ||
| 'name': 'Telegram', | ||
| 'url': 'https://t.me/StabilityNexus', | ||
| 'icon': Icons.send, | ||
| 'useSecondary': false, | ||
| }, | ||
| { | ||
| 'name': 'YouTube', | ||
| 'url': 'https://www.youtube.com/@StabilityNexus', | ||
| 'icon': Icons.play_circle_filled, | ||
| 'useSecondary': true, | ||
| }, | ||
| ]; | ||
|
|
||
| return Wrap( | ||
| spacing: 12, | ||
| runSpacing: 12, | ||
| alignment: WrapAlignment.center, | ||
| children: links.map((link) { | ||
| return _buildSocialButton( | ||
| name: link['name'] as String, | ||
| url: link['url'] as String, | ||
| icon: link['icon'] as IconData, | ||
| colors: colors, | ||
| useSecondary: link['useSecondary'] as bool, | ||
| ); | ||
| }).toList(), | ||
| ); | ||
| } | ||
|
|
||
| Widget _buildSocialButton({ | ||
| required String name, | ||
| required String url, | ||
| required IconData icon, | ||
| required Map<String, Color> colors, | ||
| required bool useSecondary, | ||
| }) { | ||
| final buttonColor = | ||
| useSecondary ? colors['secondary']! : colors['primary']!; | ||
|
|
||
| return Material( | ||
| elevation: 4, | ||
| borderRadius: BorderRadius.circular(12), | ||
| child: InkWell( | ||
| onTap: () => _launchURL(url), | ||
| borderRadius: BorderRadius.circular(12), | ||
| child: Container( | ||
| padding: const EdgeInsets.symmetric(horizontal: 12, vertical: 8), | ||
| decoration: BoxDecoration( | ||
| color: buttonColor, | ||
| borderRadius: BorderRadius.circular(12), | ||
| border: Border.all( | ||
| color: Colors.black, | ||
| width: 2, | ||
| ), | ||
| ), | ||
| child: Row( | ||
| mainAxisSize: MainAxisSize.min, | ||
| children: [ | ||
| Icon(icon, size: 18, color: Colors.black), | ||
| const SizedBox(width: 6), | ||
| Text( | ||
| name, | ||
| style: TextStyle( | ||
| color: Colors.black, | ||
| fontWeight: FontWeight.w600, | ||
| fontSize: 12, | ||
| ), | ||
| ), | ||
| ], | ||
| ), | ||
| ), | ||
| ), | ||
| ); | ||
| } | ||
|
|
||
| Future<void> _launchURL(String urlString) async { | ||
| final Uri url = Uri.parse(urlString); | ||
| try { | ||
| if (!await launchUrl( | ||
| url, | ||
| mode: LaunchMode.externalApplication, | ||
| )) { | ||
| throw Exception('Could not launch $urlString'); | ||
| } | ||
| } catch (e) { | ||
| // Fallback or error handling | ||
| debugPrint('Error launching URL: $e'); | ||
| } | ||
| } | ||
| } |
This file contains hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Incorrect value for ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS.
The setting
ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONShas been changed fromYEStoAppIconin both Debug and Release configurations. This setting should be a boolean value (YES or NO), not a string like "AppIcon". This incorrect value may cause build failures or unexpected behavior during asset compilation.Apply this diff to fix both occurrences:
Also apply the same fix at line 488:
Also applies to: 488-488
🤖 Prompt for AI Agents