appbar_dropdown 0.0.4 copy "appbar_dropdown: ^0.0.4" to clipboard
appbar_dropdown: ^0.0.4 copied to clipboard

AppBar Dropdown is an attractive UI element that allows for navigation via a dropdown menu in the AppBar.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:appbar_dropdown/appbar_dropdown.dart';


class TestData {
  final String title;

  TestData(this.title);

}


void main() {
  runApp( 
      MaterialApp(
       home: Scaffold(
          appBar: AppBar(
            flexibleSpace: AppbarDropdown<TestData>(
              items: [ for (var i=0;i<100;i++) TestData("User $i") ],
              selected: TestData("User 2"),
              title: ( (user) => user.title ),
              // ignore: avoid_print
              onClick: ( (user) => print(user.title) ),
           ),
          ),
       ),
      ),
  );
}
4
likes
120
pub points
64%
popularity

Publisher

unverified uploader

AppBar Dropdown is an attractive UI element that allows for navigation via a dropdown menu in the AppBar.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (LICENSE)

Dependencies

flutter, pointer_interceptor

More

Packages that depend on appbar_dropdown