fastyle_buttons 0.0.33 copy "fastyle_buttons: ^0.0.33" to clipboard
fastyle_buttons: ^0.0.33 copied to clipboard

PlatformiOS

Set of buttons Widgets for the fastyle library.

example/lib/main.dart

// Flutter imports:
import 'package:fastyle_buttons_example/sections/animated.dart';
import 'package:fastyle_buttons_example/sections/outlined.dart';
import 'package:fastyle_buttons_example/sections/popup_menu.dart';
import 'package:fastyle_buttons_example/sections/raised.dart';
import 'package:fastyle_buttons_example/sections/text.dart';
import 'package:flutter/material.dart';

// Package imports:
import 'package:fastyle_core/fastyle_core.dart';
import 'package:go_router/go_router.dart';

import 'package:fastyle_buttons_example/sections/actions.dart';
import 'package:fastyle_buttons_example/sections/pending.dart';
import 'package:fastyle_buttons_example/sections/navigation.dart';
import 'package:fastyle_buttons_example/sections/toolbar.dart';

final kAppInfo = kFastAppInfo.copyWith(
  appName: 'Fastyle Buttons',
  databaseVersion: 0,
);

void main() async {
  WidgetsFlutterBinding.ensureInitialized();
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return FastApp(
      appInformation: kAppInfo,
      routesForMediaType: (mediaType) => [
        GoRoute(path: '/', builder: (context, __) => const HomePage()),
      ],
    );
  }
}

class HomePage extends StatelessWidget {
  const HomePage({super.key});

  @override
  Widget build(BuildContext context) {
    return const FastSectionPage(
      titleText: 'Buttons',
      showAppBar: false,
      isViewScrollable: true,
      child: Column(
        crossAxisAlignment: CrossAxisAlignment.start,
        children: [
          TextButtonsSection(),
          kFastVerticalSizedBox16,
          OutlinedButtonsSection(),
          kFastVerticalSizedBox16,
          RaisedButtonsSection(),
          kFastVerticalSizedBox16,
          PendingButtonsSection(),
          kFastVerticalSizedBox16,
          ToolbarButtonsSection(),
          kFastVerticalSizedBox16,
          ActionButtonsSection(),
          kFastVerticalSizedBox16,
          PopupMenuButtonsSection(),
          kFastVerticalSizedBox16,
          NavigationButtonsSection(),
          kFastVerticalSizedBox16,
          AnimatedButtonsSection(),
          kFastVerticalSizedBox16,
        ],
      ),
    );
  }
}
1
likes
140
points
1.12k
downloads

Publisher

unverified uploader

Weekly Downloads

Set of buttons Widgets for the fastyle library.

Repository (GitHub)
View/report issues

Documentation

API reference

License

ISC (license)

Dependencies

easy_localization, fastyle_core, flutter, font_awesome_flutter, go_router, lingua_core, rxdart, t_helpers

More

Packages that depend on fastyle_buttons