ExpansionPanel

ExpansionPanel

ExpansionPanel({@required ExpansionPanelHeaderBuilder headerBuilder, @required Widget body, bool isExpanded: false })

açıklama

Sayfanın üzerine bir genişlemeli panel sunar.

parametreler

ExpansionPanel({
                             @required ExpansionPanelHeaderBuilder headerBuilder,
                              @required Widget body,
                              bool isExpanded: false
                         })

örnek uygulama

expanion-panel-orn
 
import 'package:flutter/material.dart';

void main() => runApp(new MyApp());

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return new MaterialApp(
        title: "Test",
        home: new Scaffold(
            appBar: new AppBar(
                title: new Text("Test"),
            ),
            body: new ListView(
                children: [
                  new ExpansionPanelList(
                    children: [
                      new ExpansionPanel(
                          headerBuilder: (BuildContext context, bool isExpanded) => const Text("Test"),
                          body: const Text("Test"),
                          isExpanded: true,
                      ),
                    ],
                  ),
                ],
            ),
        ),
    );
  }
}

Bir cevap yazın

KAPAT
%d blogcu bunu beğendi: