@@ -62,7 +62,7 @@ class _SwipePagesState extends State<SwipePage> {
6262 child: Text (
6363 'Skip' ,
6464 style: theme.textTheme.bodyLarge! .copyWith (
65- color: colorScheme.onSurface. withOpacity ( 0.6 ) ,
65+ color: colorScheme.onSurface,
6666 fontWeight: FontWeight .w500,
6767 ),
6868 ),
@@ -106,55 +106,52 @@ class _SwipePagesState extends State<SwipePage> {
106106 Padding (
107107 padding: const EdgeInsets .fromLTRB (24 , 0 , 24 , 32 ),
108108 child: Row (
109+ mainAxisAlignment: MainAxisAlignment .center,
109110 children: [
110111 // Previous button
111112 if (_currentPage > 0 )
112- Expanded (
113- child: OutlinedButton (
114- onPressed: () {
115- _pageController.previousPage (
116- duration: const Duration (milliseconds: 300 ),
117- curve: Curves .easeInOut,
118- );
119- },
120- style: OutlinedButton .styleFrom (
121- padding: const EdgeInsets .symmetric (vertical: 16 ),
122- shape: RoundedRectangleBorder (
123- borderRadius: BorderRadius .circular (12 ),
124- ),
125- side: BorderSide (
126- color: colorScheme.outline.withOpacity (0.5 ),
127- ),
113+ OutlinedButton (
114+ onPressed: () {
115+ _pageController.previousPage (
116+ duration: const Duration (milliseconds: 300 ),
117+ curve: Curves .easeInOut,
118+ );
119+ },
120+ style: OutlinedButton .styleFrom (
121+ padding: const EdgeInsets .symmetric (horizontal: 30 , vertical: 12 ),
122+ shape: RoundedRectangleBorder (
123+ borderRadius: BorderRadius .circular (12 ),
124+ ),
125+ side: BorderSide (
126+ color: colorScheme.outline.withOpacity (0.5 ),
128127 ),
129- child : Text (
130- 'Previous' ,
131- style : theme.textTheme.bodyLarge ! . copyWith (
132- color : colorScheme.onSurface,
133- fontWeight : FontWeight .w600 ,
134- ) ,
128+ ),
129+ child : Text (
130+ 'Previous' ,
131+ style : theme.textTheme.bodyMedium ! . copyWith (
132+ color : colorScheme.onSurface ,
133+ fontWeight : FontWeight .w600 ,
135134 ),
136135 ),
137136 ),
138137 if (_currentPage > 0 ) const SizedBox (width: 12 ),
139138
140139 // Next button
141- Expanded (
142- child: ElevatedButton (
143- onPressed: _nextPage,
144- style: ElevatedButton .styleFrom (
145- padding: const EdgeInsets .symmetric (vertical: 16 ),
146- shape: RoundedRectangleBorder (
147- borderRadius: BorderRadius .circular (12 ),
148- ),
149- backgroundColor: colorScheme.primary,
150- elevation: 0 ,
140+ ElevatedButton (
141+ onPressed: _nextPage,
142+ style: ElevatedButton .styleFrom (
143+ padding: const EdgeInsets .symmetric (horizontal: 30 , vertical: 12 ),
144+ shape: RoundedRectangleBorder (
145+ borderRadius: BorderRadius .circular (12 ),
151146 ),
152- child: Text (
153- 'Next' ,
154- style: theme.textTheme.bodyLarge! .copyWith (
155- color: colorScheme.onPrimary,
156- fontWeight: FontWeight .w600,
157- ),
147+ backgroundColor: colorScheme.primary,
148+ elevation: 0 ,
149+ ),
150+ child: Text (
151+ 'Next' ,
152+ style: theme.textTheme.bodyMedium! .copyWith (
153+ color: colorScheme.onPrimary,
154+ fontWeight: FontWeight .w600,
158155 ),
159156 ),
160157 ),
0 commit comments