Untitled
unknown
plain_text
2 years ago
990 B
1
Indexable
Never
import 'package:QanatiApp/Utilities/Constant/colors.dart'; import 'package:flutter/material.dart'; Widget iconWithoutText( {required IconData icon, required Function function, Color? color, Color? backGroundColor, double? size, Function? onLongPress}) { return ClipRRect( borderRadius: BorderRadius.circular(0), //15 child: SizedBox( height: 56, width: 56, child: ElevatedButton( style: ButtonStyle( backgroundColor: MaterialStateProperty.all( backGroundColor ?? ColorsApp.white24), elevation: MaterialStateProperty.all(0)), child: FittedBox( child: Column( children: [ Icon( icon, color: color ?? ColorsApp.WHITE, ), ], ), ), onPressed: () { function(); }), ), ); }