sliver_app_bar_builder 1.0.3 copy "sliver_app_bar_builder: ^1.0.3" to clipboard
sliver_app_bar_builder: ^1.0.3 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,
        useInheritedMediaQuery: true,
        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
0
points
1.31k
downloads

Publisher

verified publishernetglade.cz

Weekly Downloads

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

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on sliver_app_bar_builder