Bulah  Pfeffer

Bulah Pfeffer

1640473200

Flutter_advanced_button

Use this package as a library

Depend on it

Run this command:

With Flutter:

 $ flutter pub add flutter_advanced_button

This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):

dependencies:
  flutter_advanced_button: ^1.0.2

Alternatively, your editor might support or flutter pub get. Check the docs for your editor to learn more.

Import it

Now in your Dart code, you can use:

import 'package:flutter_advanced_button/flutter_advanced_button.dart';

example/lib/main.dart

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

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

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
        title: 'Flutter Advanced Button Example',
        theme: ThemeData(
          primarySwatch: Colors.blue,
        ),
        home: Scaffold(
          body: Column(
            mainAxisAlignment: MainAxisAlignment.spaceAround,
            children: [
              Center(
                  child: Advanced3DButton(
                      child: Text(
                        "Advanced3DButton",
                        style: TextStyle(
                            color: Colors.white,
                            fontSize: 16,
                            fontWeight: FontWeight.w600),
                      ),
                      onTap: () {
                        print("Tapped");
                      })),
              Center(
                  child: AdvancedRoundedButton(
                width: 250,
                child: Text(
                  "AdvancedRoundedButton",
                  style: TextStyle(
                      color: Colors.white,
                      fontSize: 15,
                      fontWeight: FontWeight.w600),
                ),
                onTap: () {
                  print("Tapped");
                },
                animationSpeed: 275,
              )),
              Center(
                  child: AdvancedFolidButton(
                      width: 270,
                      foldWidth: 200,
                      child: Text(
                        "AdvancedFoldingButton",
                        style: TextStyle(
                            color: Colors.white,
                            fontSize: 15,
                            fontWeight: FontWeight.w600),
                      ),
                      onTap: () {
                        print("Tapped");
                      })),
            ],
          ),
        ));
  }
}

Author: packages
Source Code: https://pub.dev/packages/flutter_advanced_button/example
License: MIT License

#flutter 

What is GEEK

Buddha Community

Flutter_advanced_button
Bulah  Pfeffer

Bulah Pfeffer

1640473200

Flutter_advanced_button

Use this package as a library

Depend on it

Run this command:

With Flutter:

 $ flutter pub add flutter_advanced_button

This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):

dependencies:
  flutter_advanced_button: ^1.0.2

Alternatively, your editor might support or flutter pub get. Check the docs for your editor to learn more.

Import it

Now in your Dart code, you can use:

import 'package:flutter_advanced_button/flutter_advanced_button.dart';

example/lib/main.dart

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

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

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
        title: 'Flutter Advanced Button Example',
        theme: ThemeData(
          primarySwatch: Colors.blue,
        ),
        home: Scaffold(
          body: Column(
            mainAxisAlignment: MainAxisAlignment.spaceAround,
            children: [
              Center(
                  child: Advanced3DButton(
                      child: Text(
                        "Advanced3DButton",
                        style: TextStyle(
                            color: Colors.white,
                            fontSize: 16,
                            fontWeight: FontWeight.w600),
                      ),
                      onTap: () {
                        print("Tapped");
                      })),
              Center(
                  child: AdvancedRoundedButton(
                width: 250,
                child: Text(
                  "AdvancedRoundedButton",
                  style: TextStyle(
                      color: Colors.white,
                      fontSize: 15,
                      fontWeight: FontWeight.w600),
                ),
                onTap: () {
                  print("Tapped");
                },
                animationSpeed: 275,
              )),
              Center(
                  child: AdvancedFolidButton(
                      width: 270,
                      foldWidth: 200,
                      child: Text(
                        "AdvancedFoldingButton",
                        style: TextStyle(
                            color: Colors.white,
                            fontSize: 15,
                            fontWeight: FontWeight.w600),
                      ),
                      onTap: () {
                        print("Tapped");
                      })),
            ],
          ),
        ));
  }
}

Author: packages
Source Code: https://pub.dev/packages/flutter_advanced_button/example
License: MIT License

#flutter