Skip to content

Commit

Permalink
help page
Browse files Browse the repository at this point in the history
  • Loading branch information
dagmawibabi committed Jan 1, 2025
1 parent df36da0 commit 5fa9300
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 42 deletions.
13 changes: 1 addition & 12 deletions lib/pages/home_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ class _HomePageState extends State<HomePage> {
"ScholArxiv",
),
actions: [

// HELP
IconButton(
onPressed: () {
Navigator.push(
Expand All @@ -185,17 +185,6 @@ class _HomePageState extends State<HomePage> {
),
),












// BOOKMARKS
IconButton(
onPressed: () {
Expand Down
44 changes: 18 additions & 26 deletions lib/pages/how_to_use.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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 [email protected]',
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(
Expand All @@ -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,
Expand Down Expand Up @@ -139,4 +132,3 @@ class HowToUsePage extends StatelessWidget {
);
}
}

5 changes: 1 addition & 4 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit 5fa9300

Please sign in to comment.