social_action_button 0.0.1 copy "social_action_button: ^0.0.1" to clipboard
social_action_button: ^0.0.1 copied to clipboard

social_action_button is to show icons like - like, comment, share and save same as like in instagram post we get the action buttons.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:social_action_button/social_media_buttons.dart'; // Import the SocialMediaButtons widget

void main() => runApp(const MyApp());

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

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: const Text('Social Media Buttons Example'),
        ),
        body: Center(
          child: SocialMediaButtons(
            likeColor: Colors.black,
            commentColor: Colors.black,
            shareColor: Colors.black,
            saveColor: Colors.black,
            showLikeButton: true,
            showCommentButton: true, // Hide comment button
            showShareButton: true,
            showSaveButton: true,
            onLikePressed: () {
              print('Like pressed!');
            },
            // Define other callbacks as needed
          ),
        ),
      ),
    );
  }
}
3
likes
150
pub points
36%
popularity

Publisher

unverified uploader

social_action_button is to show icons like - like, comment, share and save same as like in instagram post we get the action buttons.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on social_action_button