Removed unnecessary widgets.

This commit is contained in:
Faris Armoush
2025-05-07 15:46:24 +03:00
parent 5e6c14efeb
commit 7f03222c12

View File

@ -19,7 +19,6 @@ class AnalyticsPageTabsAndChildren extends StatelessWidget {
children: [ children: [
Expanded( Expanded(
child: Container( child: Container(
width: MediaQuery.sizeOf(context).width * 1,
decoration: subSectionContainerDecoration, decoration: subSectionContainerDecoration,
padding: const EdgeInsets.symmetric(horizontal: 32), padding: const EdgeInsets.symmetric(horizontal: 32),
child: Row( child: Row(
@ -68,15 +67,12 @@ class AnalyticsPageTabsAndChildren extends StatelessWidget {
), ),
Expanded( Expanded(
flex: 8, flex: 8,
child: SizedBox(
width: MediaQuery.sizeOf(context).width,
child: AnimatedSwitcher( child: AnimatedSwitcher(
switchInCurve: Curves.easeIn, switchInCurve: Curves.easeIn,
duration: const Duration(milliseconds: 200), duration: const Duration(milliseconds: 200),
child: selectedTab.child, child: selectedTab.child,
), ),
), ),
),
], ],
), ),
); );