From 5fa9300582838bc9510d73cae4ccc2288c96e4f7 Mon Sep 17 00:00:00 2001 From: dagmawibabi <1babidagi@gmail.com> Date: Thu, 2 Jan 2025 01:19:48 +0300 Subject: [PATCH] help page --- lib/pages/home_page.dart | 13 +----------- lib/pages/how_to_use.dart | 44 ++++++++++++++++----------------------- pubspec.yaml | 5 +---- 3 files changed, 20 insertions(+), 42 deletions(-) diff --git a/lib/pages/home_page.dart b/lib/pages/home_page.dart index e52eb01..1fde9b8 100644 --- a/lib/pages/home_page.dart +++ b/lib/pages/home_page.dart @@ -170,7 +170,7 @@ class _HomePageState extends State { "ScholArxiv", ), actions: [ - + // HELP IconButton( onPressed: () { Navigator.push( @@ -185,17 +185,6 @@ class _HomePageState extends State { ), ), - - - - - - - - - - - // BOOKMARKS IconButton( onPressed: () { diff --git a/lib/pages/how_to_use.dart b/lib/pages/how_to_use.dart index 833e058..8c1957f 100644 --- a/lib/pages/how_to_use.dart +++ b/lib/pages/how_to_use.dart @@ -21,56 +21,48 @@ class HowToUsePage extends StatelessWidget { padding: const EdgeInsets.all(16.0), children: [ _buildSection( - 'Search Papers', + 'Search, Download and Bookmark Papers', 'assets/banners/ScholArxiv.png', - 'Use the search bar at the top to find research papers. Enter keywords or author names.', + 'Use the search bar at the top to find research papers. Enter keywords or author names. Once you find what you like you can bookmark it to read later or download to save the pdf.', isDarkTheme, context, ), _buildSection( - 'View Details', + 'View and Listen to Summaries', 'assets/banners/ScholArxiv2.png', - 'Tap on any paper to view its details, abstract, and download options.', + 'Tap the summary button on any paper to view its summary and click on the volume icon to listen to it. You can also adjust the speed of the audio.', isDarkTheme, context, ), - _buildSection( - 'Change Theme', - 'assets/banners/ScholArxiv3.png', - 'Toggle between light and dark themes using the theme icon in the app bar.', + 'AI Chat', + 'assets/banners/ScholArxiv7.png', + 'Discuss papers with AI by tapping the AI icon or click on the AI icon on the app bar to have a general conversation.', isDarkTheme, context, ), _buildSection( - 'AI Chat', + 'API configuration', 'assets/banners/ScholArxiv6.png', - 'Discuss papers with AI by tapping the AI chat icon.', + "You can grab your own Gemini API key in the settings page to enable AI chat. Click on the 'GET API KEY' button to get your key.", isDarkTheme, context, ), - _buildSection( - 'API configuration', - 'assets/banners/ScholArxiv6.png', - 'Enter your API key in the settings page to enable AI chat.', + _buildSection( + 'Change Theme', + 'assets/banners/ScholArxiv3.png', + 'Toggle between light, dark and mixed themes using the theme icon in the app bar.', isDarkTheme, context, ), - const SizedBox(height: 20), - Text( - 'Need more help? Contact us at support@scholrxiv.com', - style: TextStyle( - color: isDarkTheme ? Colors.grey[400] : Colors.grey[600], - fontSize: 14, - ), - textAlign: TextAlign.center, - ), + const SizedBox(height: 50), ], ), ); } - Widget _buildSection(String title, String imagePath, String description, bool isDarkTheme, BuildContext context) { + Widget _buildSection(String title, String imagePath, String description, + bool isDarkTheme, BuildContext context) { return Container( margin: const EdgeInsets.only(bottom: 24), decoration: BoxDecoration( @@ -83,7 +75,8 @@ class HowToUsePage extends StatelessWidget { GestureDetector( onTap: () => _showFullScreenImage(context, imagePath), child: ClipRRect( - borderRadius: const BorderRadius.vertical(top: Radius.circular(12)), + borderRadius: + const BorderRadius.vertical(top: Radius.circular(12)), child: Image.asset( imagePath, width: double.infinity, @@ -139,4 +132,3 @@ class HowToUsePage extends StatelessWidget { ); } } - diff --git a/pubspec.yaml b/pubspec.yaml index e3545f7..7cfa806 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -16,7 +16,7 @@ publish_to: "none" # Remove this line if you wish to publish to pub.dev # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html # In Windows, build-name is used as the major, minor, and patch parts # of the product and file versions while build-number is used as the build suffix. -version: 3.0.2+1 +version: 3.0.5 environment: sdk: ">=3.4.4 <4.0.0" @@ -111,9 +111,6 @@ flutter: - assets/banners/ScholArxiv6.png - assets/banners/ScholArxiv7.png - - - # An image asset can refer to one or more resolution-specific "variants", see # https://flutter.dev/assets-and-images/#resolution-aware