Widget build()

in example/lib/pages/link/link_page.dart [87:109]


  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: const Text('链接设置页面'),
        actions: [
          IconButton(
            icon: const Icon(Icons.save),
            onPressed: onSavePressed,
          ),
        ],
      ),
      body: GestureDetector(
        onTap: () => FocusScope.of(context).unfocus(), // 点击页面任何地方收起键盘
        child: _buildContentBody(),
      ),
      floatingActionButton: (widget.linkItems?.isNotEmpty == true)
          ? FloatingActionButton(
              onPressed: _onFloatButtonPressed,
              child: const Icon(Icons.arrow_forward_rounded),
            )
          : null,
    );
  }