mirror of
https://github.com/DungeonPaper/dungeon-paper-app.git
synced 2026-05-17 17:58:11 +00:00
Don't require being logged in to create notes
This commit is contained in:
committed by
Chen Asraf
parent
4a58eec617
commit
f22a13a0e7
@@ -110,7 +110,6 @@ class HomeCharacterJournalView extends GetView<CharacterService> {
|
||||
onPressed: () => Get.back(result: false),
|
||||
style: ButtonThemes.primaryElevated(context),
|
||||
),
|
||||
// const SizedBox(width: 8),
|
||||
ElevatedButton.icon(
|
||||
icon: const Icon(Icons.delete),
|
||||
label: Text(S.current.remove),
|
||||
|
||||
@@ -21,7 +21,7 @@ import 'home_fab.dart';
|
||||
import 'home_nav_bar.dart';
|
||||
|
||||
class HomeView extends GetView<CharacterService> with UserServiceMixin, LoadingServiceMixin, CharacterServiceMixin {
|
||||
const HomeView({Key? key}) : super(key: key);
|
||||
const HomeView({super.key});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
@@ -45,9 +45,7 @@ class HomeView extends GetView<CharacterService> with UserServiceMixin, LoadingS
|
||||
: const HomeEmptyState();
|
||||
},
|
||||
),
|
||||
floatingActionButton: Obx(
|
||||
() => userService.isLoggedIn && maybeChar != null ? const HomeFAB() : const SizedBox.shrink(),
|
||||
),
|
||||
floatingActionButton: Obx(() => maybeChar != null ? const HomeFAB() : const SizedBox.shrink()),
|
||||
bottomNavigationBar: Obx(
|
||||
() => maybeChar != null ? HomeNavBar(pageController: controller.pageController) : const SizedBox.shrink(),
|
||||
),
|
||||
@@ -93,7 +91,7 @@ class HomeEmptyState extends StatelessWidget with UserServiceMixin {
|
||||
text: TextSpan(
|
||||
children: [
|
||||
IconSpan(context, icon: Icons.person, size: 24),
|
||||
TextSpan(text: ' ' + S.current.homeEmptyStateLoginTitle),
|
||||
TextSpan(text: ' ${S.current.homeEmptyStateLoginTitle}'),
|
||||
],
|
||||
style: textTheme.titleLarge,
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user