sliver_app_bar_builder 1.1.0 copy "sliver_app_bar_builder: ^1.1.0" to clipboard
sliver_app_bar_builder: ^1.1.0 copied to clipboard

A truly customizable sliver for app bars with the benefit of using builders.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:sliver_app_bar_builder_example/stories/multiline_to_oneline_story.dart';
import 'package:sliver_app_bar_builder_example/stories/play_with_parameters_story.dart';
import 'package:storybook_flutter/storybook_flutter.dart';

void main() {
  runApp(StorybookApp());
}

// ignore: prefer-match-file-name, ok for example
class StorybookApp extends StatelessWidget {
  final _plugins = initializePlugins(
    knobsSidePanel: true,
    contentsSidePanel: true,
    initialDeviceFrameData: DeviceFrameData(
      device: Devices.ios.iPhone13ProMax,
    ),
  );

  StorybookApp({super.key});

  @override
  Widget build(BuildContext context) {
    return Storybook(
      plugins: _plugins,
      wrapperBuilder: (context, child) => MaterialApp(
        navigatorKey: GlobalKey(),
        theme: ThemeData.light(),
        darkTheme: ThemeData.dark(),
        debugShowCheckedModeBanner: false,
        home: Scaffold(body: Center(child: child)),
      ),
      initialStory: 'Default',
      stories: [
        Story(
          name: 'Default',
          builder: (context) => const PlayWithParametersStory(),
        ),
        Story(
          name: 'Multiline to one line',
          builder: (context) => const MultilineToOneLineStory(),
        ),
      ],
    );
  }
}
102
likes
150
pub points
91%
popularity
screenshot

Publisher

verified publishernetglade.cz

A truly customizable sliver for app bars with the benefit of using builders.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on sliver_app_bar_builder