style: apply dart format across project
This commit is contained in:
@@ -33,7 +33,7 @@ class _MainScreenState extends State<MainScreen>
|
||||
late AnimationController _waveController;
|
||||
late ScrollController _scrollController;
|
||||
late FloatingNavBarScrollController _navBarScrollController;
|
||||
|
||||
|
||||
// 화면 목록
|
||||
late final List<Widget> _screens;
|
||||
|
||||
@@ -63,7 +63,7 @@ class _MainScreenState extends State<MainScreen>
|
||||
);
|
||||
|
||||
_scrollController = ScrollController();
|
||||
|
||||
|
||||
_navBarScrollController = FloatingNavBarScrollController(
|
||||
scrollController: _scrollController,
|
||||
onHide: () {},
|
||||
@@ -157,7 +157,7 @@ class _MainScreenState extends State<MainScreen>
|
||||
AppRoutes.addSubscription,
|
||||
).then((result) {
|
||||
_resetAnimations();
|
||||
|
||||
|
||||
// 구독이 성공적으로 추가된 경우
|
||||
if (result == true) {
|
||||
// 상단에 스낵바 표시
|
||||
@@ -203,18 +203,18 @@ class _MainScreenState extends State<MainScreen>
|
||||
|
||||
void _handleNavigation(int index, BuildContext context) {
|
||||
final navigationProvider = context.read<NavigationProvider>();
|
||||
|
||||
|
||||
// 이미 같은 인덱스면 무시
|
||||
if (navigationProvider.currentIndex == index) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
// 추가 버튼은 별도 처리
|
||||
if (index == 2) {
|
||||
_navigateToAddSubscription(context);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
// 인덱스 업데이트
|
||||
navigationProvider.updateCurrentIndex(index);
|
||||
}
|
||||
@@ -222,7 +222,7 @@ class _MainScreenState extends State<MainScreen>
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
final navigationProvider = context.watch<NavigationProvider>();
|
||||
|
||||
|
||||
// 메인 그라데이션 사용
|
||||
List<Color> backgroundGradient = AppColors.mainGradient;
|
||||
|
||||
@@ -235,8 +235,12 @@ class _MainScreenState extends State<MainScreen>
|
||||
return GlassmorphicScaffold(
|
||||
body: IndexedStack(
|
||||
index: PlatformHelper.isIOS
|
||||
? (currentIndex == 3 ? 3 : currentIndex) // iOS: 설정화면은 인덱스 3
|
||||
: (currentIndex == 3 ? 3 : currentIndex == 4 ? 4 : currentIndex), // Android: 기존 로직
|
||||
? (currentIndex == 3 ? 3 : currentIndex) // iOS: 설정화면은 인덱스 3
|
||||
: (currentIndex == 3
|
||||
? 3
|
||||
: currentIndex == 4
|
||||
? 4
|
||||
: currentIndex), // Android: 기존 로직
|
||||
children: _screens,
|
||||
),
|
||||
backgroundGradient: backgroundGradient,
|
||||
@@ -249,4 +253,4 @@ class _MainScreenState extends State<MainScreen>
|
||||
enableWaveAnimation: false,
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user