import 'package:flutter/material.dart'; import '../../const/font.dart'; class ToolCard extends StatefulWidget { const ToolCard({super.key}); @override State createState() => _ToolCardState(); } class _ToolCardState extends State { @override Widget build(BuildContext context) { return Card( child: Container( padding: EdgeInsets.symmetric(horizontal: 8, vertical: 8), clipBehavior: Clip.hardEdge, decoration: BoxDecoration(), child: Row( children: [ Expanded( child: Image.asset( "assets/qr_code_logo.png", width: double.infinity, height: double.infinity, fit: BoxFit.cover, ), ), SizedBox(width: 8), Expanded( child: ClipRect( clipBehavior: Clip.hardEdge, child: Column( crossAxisAlignment: CrossAxisAlignment.start, children: [ Text( "二维码生成器", style: TextStyle( fontSize: Font.FONT_SIZE_SUBTITLE, fontWeight: FontWeight.bold, ), ), SizedBox(height: 8), Divider(), SizedBox(height: 8), Container( child: Text( "上传文字,图片即可立即生成二维码", maxLines: 2, style: TextStyle( fontSize: Font.FONT_SIZE_CONTENT, overflow: TextOverflow.ellipsis, ), ), ), ], ), ), ), ], ), ), ); } }