about text

This commit is contained in:
randogoth 2025-02-24 15:44:25 +02:00
parent 8c602894a6
commit 2fde531964
11 changed files with 422 additions and 2 deletions

View file

@ -5,6 +5,7 @@ import 'package:device_apps/device_apps.dart';
import 'package:flutter/services.dart';
import 'package:flutter_svg/flutter_svg.dart';
import 'package:google_fonts/google_fonts.dart';
import 'package:plasmoid/read_only.dart';
import 'package:shared_preferences/shared_preferences.dart';
import 'day.dart';
import 'night.dart';
@ -356,6 +357,19 @@ class _AppLauncherScreenState extends State<AppLauncherScreen> {
return iconWidget;
}
_showInfoPage(BuildContext context, String title, String content) {
Navigator.push(
context,
MaterialPageRoute(
builder: (context) => ReadOnlyPage(
title: title,
content: content,
isDarkMode: widget.settings.darkTheme,
),
),
);
}
@override
Widget build(BuildContext context) {
return Scaffold(
@ -383,7 +397,7 @@ class _AppLauncherScreenState extends State<AppLauncherScreen> {
icon: SvgPicture.asset(
"assets/plasmoid.svg",
width: 30,
color: Colors.orange,
color: Color(0xff38818a),
),
onSelected: (String value) {
switch (value) {
@ -448,6 +462,9 @@ class _AppLauncherScreenState extends State<AppLauncherScreen> {
autoFocus: !widget.settings.autoFocus,
));
break;
case 'About':
_showInfoPage(context, "About", aboutContent);
break;
}
},
itemBuilder: (BuildContext context) => [
@ -511,6 +528,13 @@ class _AppLauncherScreenState extends State<AppLauncherScreen> {
title: Text(widget.settings.autoFocus ? 'Disable Auto Focus' : 'Enable Auto Focus'),
),
),
PopupMenuItem<String>(
value: 'About',
child: ListTile(
leading: Icon(Icons.info_outline),
title: Text('About'),
),
),
],
),
),
@ -560,3 +584,28 @@ class _AppLauncherScreenState extends State<AppLauncherScreen> {
);
}
}
String aboutContent = """
**Plasmoid** is a minimalist and opinionated app launcher for Android.
## Search & Launch:
Open Plasmoid and start typing in the search bar to filter your apps and shared files by name or tag.
Tap an app to launch it immediately.
## Tagging:
Swipe right on any item to edit its tags. For shared files, a tag dialog appears immediately upon sharing.
Tags help you organize items and are searchable using prefixes like @context, #general, or +project.
## Gestures & Settings:
Swipe left on an app to view its settings.
Use the menu button (plasmoid) to toggle settings such as icon visibility, color mode, theme, sorting (alphabetically or by last used), and auto-focus.
---
Made with 💚 by randogothimport 'package:plasmoid/texts.dart';
Icon by [Game Icons.net](https://game-icons.net/).
""";