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 '../widgets/glassmorphism_card.dart';
|
||||||
import '../theme/app_colors.dart';
|
import '../theme/app_colors.dart';
|
||||||
import '../widgets/native_ad_widget.dart';
|
import '../widgets/native_ad_widget.dart';
|
||||||
|
import '../widgets/common/snackbar/app_snackbar.dart';
|
||||||
|
|
||||||
class SettingsScreen extends StatelessWidget {
|
class SettingsScreen extends StatelessWidget {
|
||||||
const SettingsScreen({super.key});
|
const SettingsScreen({super.key});
|
||||||
@@ -130,16 +131,9 @@ class SettingsScreen extends StatelessWidget {
|
|||||||
if (granted) {
|
if (granted) {
|
||||||
await provider.setEnabled(true);
|
await provider.setEnabled(true);
|
||||||
} else {
|
} else {
|
||||||
ScaffoldMessenger.of(context).showSnackBar(
|
AppSnackBar.showError(
|
||||||
SnackBar(
|
context: context,
|
||||||
content: Text(
|
message: '알림 권한이 거부되었습니다',
|
||||||
'알림 권한이 거부되었습니다',
|
|
||||||
style: TextStyle(
|
|
||||||
color: AppColors.pureWhite,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
backgroundColor: AppColors.dangerColor,
|
|
||||||
),
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -411,16 +405,9 @@ class SettingsScreen extends StatelessWidget {
|
|||||||
mode: LaunchMode.externalApplication);
|
mode: LaunchMode.externalApplication);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
if (context.mounted) {
|
if (context.mounted) {
|
||||||
ScaffoldMessenger.of(context).showSnackBar(
|
AppSnackBar.showError(
|
||||||
SnackBar(
|
context: context,
|
||||||
content: Text(
|
message: '스토어를 열 수 없습니다',
|
||||||
'스토어를 열 수 없습니다',
|
|
||||||
style: TextStyle(
|
|
||||||
color: AppColors.pureWhite,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
backgroundColor: AppColors.dangerColor,
|
|
||||||
),
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user