adjust position of bottom_sheet title, fix popup while checkin
This commit is contained in:
@ -184,10 +184,10 @@ class _MapWidgetState extends State<MapWidget> with WidgetsBindingObserver {
|
||||
//}else{
|
||||
// labelText=i.properties!['cp'];
|
||||
}
|
||||
if( i.properties!['cp'] <= 0 ) {
|
||||
debugPrint("Text=${labelText}");
|
||||
}
|
||||
final double maxWidth = labelText.length * 16.0;
|
||||
//if( i.properties!['cp'] <= 0 ) {
|
||||
// debugPrint("Text=${labelText}");
|
||||
//}
|
||||
final double maxWidth = labelText.length * 16.0; //16.0;
|
||||
GeoJSONMultiPoint p = i.geometry as GeoJSONMultiPoint;
|
||||
return InkWell(
|
||||
onTap: () {
|
||||
@ -260,23 +260,25 @@ class _MapWidgetState extends State<MapWidget> with WidgetsBindingObserver {
|
||||
),
|
||||
),
|
||||
Transform.translate(
|
||||
offset: const Offset(30, 0),
|
||||
offset: const Offset(30, 0), // 30,0
|
||||
child: Align(
|
||||
alignment: Alignment.centerLeft,
|
||||
child: Container (
|
||||
width: 800, // 幅を指定
|
||||
height: 40,
|
||||
//width: 200, // 幅を指定
|
||||
//height: 60, // 40
|
||||
color: Colors.transparent,
|
||||
//constraints: const BoxConstraints(maxWidth: 1000), // 最大幅を設定
|
||||
//constraints: BoxConstraints(maxWidth: maxWidth), // 最大幅を設定
|
||||
//child: Text(' ').
|
||||
//constraints: const BoxConstraints(maxWidth: 1000.0), // 最大幅を設定
|
||||
constraints: BoxConstraints(maxWidth: maxWidth), // 最大幅を設定
|
||||
//color: Colors.purple.withOpacity(0.2),
|
||||
child: Stack(
|
||||
children: <Widget>[
|
||||
Text( // アウトライン
|
||||
labelText,
|
||||
style: TextStyle(
|
||||
fontSize: 16,
|
||||
fontSize: 14, // 16
|
||||
fontWeight: FontWeight.w700,
|
||||
height: 1.2,
|
||||
foreground: Paint()
|
||||
..style = PaintingStyle.stroke
|
||||
..strokeWidth = 2
|
||||
@ -288,8 +290,10 @@ class _MapWidgetState extends State<MapWidget> with WidgetsBindingObserver {
|
||||
Text( // テキスト
|
||||
labelText,
|
||||
style: const TextStyle(
|
||||
fontSize: 16,
|
||||
fontSize: 14,
|
||||
fontWeight: FontWeight.w700,
|
||||
//fontWeight: FontWeight.bold,
|
||||
height: 1.2,
|
||||
color: Colors.black,
|
||||
),
|
||||
maxLines: 1, // テキストを1行に制限
|
||||
|
||||
Reference in New Issue
Block a user