Skip to content

Commit

Permalink
feat(pages/SettingPage): improve experience
Browse files Browse the repository at this point in the history
  • Loading branch information
0fatal committed May 15, 2022
1 parent 8d714f2 commit e73a675
Showing 1 changed file with 22 additions and 21 deletions.
43 changes: 22 additions & 21 deletions lib/pages/profile/pages/setting_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -32,28 +32,29 @@ class SettingPage extends StatelessWidget {

Widget _buildSingleOption(
{required String title, GestureTapCallback? onTap, Widget? right}) {
return Padding(
return InkWell(
child: Padding(
padding: EdgeInsets.symmetric(horizontal: 14, vertical: 8),
child: GestureDetector(
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
Row(children: [
Align(
alignment: Alignment.topLeft,
child: Text(title, style: TextStyle(fontSize: 16)))
]),
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
Row(children: [
Align(
alignment: Alignment.centerRight,
child: Row(
children: [
right ?? Empty(),
Icon(Icons.keyboard_arrow_right)
],
))
],
),
onTap: onTap,
));
alignment: Alignment.topLeft,
child: Text(title, style: TextStyle(fontSize: 16)))
]),
Align(
alignment: Alignment.centerRight,
child: Row(
children: [
right ?? Empty(),
Icon(Icons.keyboard_arrow_right)
],
))
],
),
),
onTap: onTap,
);
}
}

0 comments on commit e73a675

Please sign in to comment.