import 'package:flutter/material.dart'; import 'package:liftmanager/res/resources.dart'; class StoreSelectTextItem extends StatelessWidget { const StoreSelectTextItem({ Key key, this.onTap, @required this.title, this.content: "", this.textAlign: TextAlign.start, this.style }): super(key: key); final GestureTapCallback onTap; final String title; final String content; final TextAlign textAlign; final TextStyle style; @override Widget build(BuildContext context) { return InkWell( onTap: onTap, child: Container( height: 50.0, margin: const EdgeInsets.only(right: 8.0, left: 16.0), width: double.infinity, decoration: BoxDecoration( border: Border( bottom: Divider.createBorderSide(context, width: 0.6), ) ), child: Row( children: [ Text(title), Expanded( flex: 1, child: Padding( padding: const EdgeInsets.only(right: 8.0, left: 16.0), child: Text( content, maxLines: 2, textAlign: textAlign, overflow: TextOverflow.ellipsis, style: style ), ), ), Images.arrowRight ], ), ), ); } }