refactor: SnackBar를 AppSnackBar로 통일
🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -10,6 +10,7 @@ import '../theme/adaptive_theme.dart';
|
||||
import '../widgets/glassmorphism_card.dart';
|
||||
import '../theme/app_colors.dart';
|
||||
import '../widgets/native_ad_widget.dart';
|
||||
import '../widgets/common/snackbar/app_snackbar.dart';
|
||||
|
||||
class SettingsScreen extends StatelessWidget {
|
||||
const SettingsScreen({super.key});
|
||||
@@ -130,16 +131,9 @@ class SettingsScreen extends StatelessWidget {
|
||||
if (granted) {
|
||||
await provider.setEnabled(true);
|
||||
} else {
|
||||
ScaffoldMessenger.of(context).showSnackBar(
|
||||
SnackBar(
|
||||
content: Text(
|
||||
'알림 권한이 거부되었습니다',
|
||||
style: TextStyle(
|
||||
color: AppColors.pureWhite,
|
||||
),
|
||||
),
|
||||
backgroundColor: AppColors.dangerColor,
|
||||
),
|
||||
AppSnackBar.showError(
|
||||
context: context,
|
||||
message: '알림 권한이 거부되었습니다',
|
||||
);
|
||||
}
|
||||
},
|
||||
@@ -411,16 +405,9 @@ class SettingsScreen extends StatelessWidget {
|
||||
mode: LaunchMode.externalApplication);
|
||||
} catch (e) {
|
||||
if (context.mounted) {
|
||||
ScaffoldMessenger.of(context).showSnackBar(
|
||||
SnackBar(
|
||||
content: Text(
|
||||
'스토어를 열 수 없습니다',
|
||||
style: TextStyle(
|
||||
color: AppColors.pureWhite,
|
||||
),
|
||||
),
|
||||
backgroundColor: AppColors.dangerColor,
|
||||
),
|
||||
AppSnackBar.showError(
|
||||
context: context,
|
||||
message: '스토어를 열 수 없습니다',
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user