Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/flutter/9.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/database/9.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Flutter 如何设置颤振材料的轮廓颜色、轮廓宽度和aria标签说明”;大纲按钮“;?_Flutter_Material Components Android - Fatal编程技术网

Flutter 如何设置颤振材料的轮廓颜色、轮廓宽度和aria标签说明”;大纲按钮“;?

Flutter 如何设置颤振材料的轮廓颜色、轮廓宽度和aria标签说明”;大纲按钮“;?,flutter,material-components-android,Flutter,Material Components Android,对于OutlineButton,颤振材质的OutlineButton正在贬值,模式不同 我试图查找文档中正确的语法,但我发现OutlineButton文档实际上是OutlineButton文档。我在弗利特的github上提出了这个问题--> 我对颤振是新手,发现很难跟踪按钮模式的所有变化。他们并不都一样。为什么呢 以下是我目前的代码: import 'package:flutter/material.dart'; import 'package:spectrum_access_flutter/c

对于OutlineButton,颤振材质的OutlineButton正在贬值,模式不同

我试图查找文档中正确的语法,但我发现OutlineButton文档实际上是OutlineButton文档。我在弗利特的github上提出了这个问题-->

我对颤振是新手,发现很难跟踪按钮模式的所有变化。他们并不都一样。为什么呢

以下是我目前的代码:

import 'package:flutter/material.dart';
import 'package:spectrum_access_flutter/constants/copy.dart';

class SecondaryButton extends StatelessWidget {

  final String title;
  final String semanticLabel;
  final Function onPressed;

  SecondaryButton({
    @required this.title,
    @required this.semanticLabel,
    @required this.onPressed
  });

  @override
  Widget build(BuildContext context) {
    return SizedBox(
      width: double.infinity,
      child: OutlinedButton(
        onPressed: onPressed,
        style: OutlinedButton.styleFrom(
          padding: EdgeInsets.all(12.0),
        ),
        child: Text(
          title,
          style: TextStyle(
            color: Colors.white,
            fontFamily: kSpectrumSans,
            fontWeight: FontWeight.w100,
            letterSpacing: 0.5,
            fontSize: 16.0,
          ),
        ),
      ),
    );
  }
}