mirror of
https://git.meshkee.com/applications/cssd.git
synced 2026-10-13 06:58:54 +03:30
beta commit
This commit is contained in:
@@ -1,50 +1,51 @@
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
class InputBox extends StatelessWidget {
|
||||
const InputBox({
|
||||
Key key,
|
||||
@required double deviceBlockSize,
|
||||
this.lable,
|
||||
this.initialValue,
|
||||
this.ico, this.isPass,
|
||||
}) : _deviceBlockSize = deviceBlockSize,
|
||||
super(key: key);
|
||||
|
||||
final double _deviceBlockSize;
|
||||
final String lable;
|
||||
final String initialValue;
|
||||
final IconData ico;
|
||||
final bool isPass;
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Row(
|
||||
crossAxisAlignment: CrossAxisAlignment.end,
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
children: <Widget>[
|
||||
Icon(
|
||||
ico,
|
||||
color: Colors.grey,
|
||||
),
|
||||
SizedBox(
|
||||
width: _deviceBlockSize,
|
||||
),
|
||||
Expanded(
|
||||
child: TextFormField(
|
||||
decoration: InputDecoration(
|
||||
isDense: false,
|
||||
// border: UnderlineInputBorder(),
|
||||
fillColor: Colors.red,
|
||||
labelText: lable,
|
||||
contentPadding: EdgeInsets.all(0),
|
||||
),
|
||||
style: TextStyle(
|
||||
fontSize: 6 * _deviceBlockSize,
|
||||
),
|
||||
initialValue: initialValue,
|
||||
),
|
||||
),
|
||||
],
|
||||
);
|
||||
}
|
||||
}
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
class InputBox extends StatelessWidget {
|
||||
const InputBox({
|
||||
Key? key,
|
||||
required double deviceBlockSize,
|
||||
this.lable,
|
||||
this.initialValue,
|
||||
this.ico,
|
||||
this.isPass,
|
||||
}) : _deviceBlockSize = deviceBlockSize,
|
||||
super(key: key);
|
||||
|
||||
final double _deviceBlockSize;
|
||||
final String? lable;
|
||||
final String? initialValue;
|
||||
final IconData? ico;
|
||||
final bool? isPass;
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Row(
|
||||
crossAxisAlignment: CrossAxisAlignment.end,
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
children: <Widget>[
|
||||
Icon(
|
||||
ico,
|
||||
color: Colors.grey,
|
||||
),
|
||||
SizedBox(
|
||||
width: _deviceBlockSize,
|
||||
),
|
||||
Expanded(
|
||||
child: TextFormField(
|
||||
decoration: InputDecoration(
|
||||
isDense: false,
|
||||
// border: UnderlineInputBorder(),
|
||||
fillColor: Colors.red,
|
||||
labelText: lable,
|
||||
contentPadding: EdgeInsets.all(0),
|
||||
),
|
||||
style: TextStyle(
|
||||
fontSize: 6 * _deviceBlockSize,
|
||||
),
|
||||
initialValue: initialValue,
|
||||
),
|
||||
),
|
||||
],
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user