mirror of
https://git.meshkee.com/applications/cssd.git
synced 2026-10-10 19:28:56 +03:30
51 lines
1.3 KiB
Dart
Executable File
51 lines
1.3 KiB
Dart
Executable File
import 'package:flutter/material.dart';
|
|
import 'package:font_awesome_flutter/font_awesome_flutter.dart';
|
|
|
|
class ResultBanner extends StatelessWidget {
|
|
const ResultBanner({
|
|
Key? key,
|
|
required double deviceBlockSize,
|
|
required this.text,
|
|
required this.push,
|
|
this.hasFilterObject = true,
|
|
}) : _deviceBlockSize = deviceBlockSize,
|
|
super(key: key);
|
|
|
|
final double _deviceBlockSize;
|
|
final String text;
|
|
final String push;
|
|
final bool hasFilterObject;
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Row(
|
|
children: <Widget>[
|
|
Text(
|
|
text,
|
|
style: TextStyle(
|
|
color: Colors.black,
|
|
fontSize: 7 * _deviceBlockSize,
|
|
fontWeight: FontWeight.w700,
|
|
letterSpacing: 2,
|
|
),
|
|
),
|
|
Spacer(),
|
|
if (hasFilterObject)
|
|
InkWell(
|
|
customBorder: CircleBorder(),
|
|
onTap: () {
|
|
Navigator.of(context).pushNamed(push);
|
|
},
|
|
child: Container(
|
|
padding: EdgeInsets.all(5),
|
|
child: Icon(
|
|
FontAwesomeIcons.filter,
|
|
size: 7 * _deviceBlockSize,
|
|
),
|
|
),
|
|
),
|
|
],
|
|
);
|
|
}
|
|
}
|