tabs method

Widget tabs(
  1. AccessDetermined accessState
)

Implementation

Widget tabs(AccessDetermined accessState) {
  return MaterialApp(
      debugShowCheckedModeBanner: false,
      home: DefaultTabController(
        length: 2,
        child: Scaffold(
          appBar: AppBar(
              automaticallyImplyLeading: true,
              flexibleSpace: null,
              title: Text(widget.label),
              leading: IconButton(
                icon: Icon(Icons.arrow_back),
                onPressed: () => Navigator.pop(context, false),
              ),
              bottom: TabBar(
                isScrollable: true,
                tabs: [
                  Tab(icon: Icon(Icons.create, color: Colors.red)),
                  Tab(icon: Icon(Icons.remove_red_eye, color: Colors.red)),
                ],
              )),
          body: TabBarView(
            children: <Widget>[
              TextFormField(
                readOnly: !accessState.memberIsOwner(widget.app.documentID),
                style: TextStyle(color: Colors.black),
                initialValue: value,
                decoration: InputDecoration(
                  fillColor: Colors.white,
                  filled: true,
                  contentPadding: EdgeInsets.fromLTRB(10.0, 30.0, 10.0, 10.0),
                ),
                onChanged: _onChanged,
                keyboardType: TextInputType.multiline,
                maxLines: null,
              ),
              _document(widget.app, accessState.getMember())
            ],
          ),
        ),
      ));
}