Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jwson-automation committed Jul 22, 2024
1 parent cb61647 commit fff7074
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
6 changes: 6 additions & 0 deletions lib/utils/AppStrings.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
class AppStrings {
static const String appTitle = '블루베리 플러터 템플릿';

//NickNameTextWidget.dart
static const String nickNameTextWidgetdefaultNickName = '닉네임';
static const String nickNameTextWidgetError = '오류';



//MyPageScreen.dart
static const String myPageTitle = '내 페이지';
static const String loginButtonText = '로그인';
Expand Down
5 changes: 3 additions & 2 deletions lib/widgets/NickNameTextWidget.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import 'package:flutter/material.dart';
import 'package:flutter_riverpod/flutter_riverpod.dart';

import '../providers/MyPageNameProvider.dart';
import '../utils/AppStrings.dart';

class NickNameTextWidget extends ConsumerWidget {
const NickNameTextWidget({super.key});
Expand All @@ -15,7 +16,7 @@ class NickNameTextWidget extends ConsumerWidget {
style: const TextStyle(fontSize: 20, fontWeight: FontWeight.bold),
),
loading: () => Text(''),
error: (e, s) => const Text('Error'),
error: (e, s) => const Text(AppStrings.nickNameTextWidgetError),
);
}
}
}

0 comments on commit fff7074

Please sign in to comment.