Skip to content

Commit 990d919

Browse files
committed
Edit btn size & remove skip opacity
1 parent 7fd27db commit 990d919

2 files changed

Lines changed: 38 additions & 42 deletions

File tree

app/lib/screens/wizard/page5.dart

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -187,8 +187,7 @@ class _Page5State extends State<Page5> with SingleTickerProviderStateMixin {
187187
],
188188
),
189189
const SizedBox(height: 16),
190-
Padding(
191-
padding: const EdgeInsets.symmetric(horizontal: 20),
190+
Center(
192191
child: ElevatedButton(
193192
onPressed: () async {
194193
if (agreed) {
@@ -199,7 +198,7 @@ class _Page5State extends State<Page5> with SingleTickerProviderStateMixin {
199198
setState(() {});
200199
},
201200
style: ElevatedButton.styleFrom(
202-
padding: const EdgeInsets.symmetric(vertical: 12),
201+
padding: const EdgeInsets.symmetric(horizontal: 30, vertical: 12),
203202
shape: RoundedRectangleBorder(
204203
borderRadius: BorderRadius.circular(12),
205204
),

app/lib/screens/wizard/swipe_page.dart

Lines changed: 36 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)