1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- import 'package:flutter/material.dart';
- import 'package:shuqi/public.dart';
- class MeCell extends StatelessWidget {
- final VoidCallback? onPressed;
- final String iconName;
- final String title;
- MeCell({required this.title, required this.iconName, this.onPressed});
- @override
- Widget build(BuildContext context) {
- return GestureDetector(
- onTap: onPressed,
- child: Container(
- color: Colors.white,
- child: Column(
- children: <Widget>[
- Container(
- color: SQColor.white,
- height: 60,
- padding: EdgeInsets.symmetric(horizontal: 20),
- child: Row(
- children: <Widget>[
- Image.asset(iconName),
- SizedBox(width: 20),
- Text(title, style: TextStyle(fontSize: 18)),
- Expanded(child: Container()),
- Image.asset('assets/img/arrow_right.png'),
- ],
- ),
- ),
- Container(
- height: 1,
- color: SQColor.lightGray,
- margin: EdgeInsets.only(left: 60),
- ),
- ],
- ),
- ),
- );
- }
- }
|