Don't require being logged in to create notes

This commit is contained in:
magnusanderson-wk
2023-12-01 17:07:07 -06:00
committed by Chen Asraf
parent 4a58eec617
commit f22a13a0e7
2 changed files with 3 additions and 6 deletions

View File

@@ -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),

View File

@@ -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,
),