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

A new Flutter package which helps you to implement beautiful animated Chat Bar in your app.

flutter_chat_bar #

Say Thanks!

A new Flutter package which helps you to implement Animated chat bar Widget in your app.

The source code is 100% Dart, and everything resides in the /lib folder.

Show some ❀️ and star the repo to support the project #

GitHub followers Twitter Follow

Open Source Love

πŸ’» Installation #

In the dependencies: section of your pubspec.yaml, add the following line:

flutter_chat_bar: <latest_version>

Import in your project:

import 'package:flutter_chat_bar/flutter_chat_bar.dart';

❔Basic Usage #

class HomePage extends StatelessWidget {
  
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text('Flutter Chat Bar'),
      ),
      body: Center(
        child: FlutterChatBar(
          height: 60.0,
          width: 370.0,
          color: Colors.blue[800],
          firstChild:  FirstChild(),
          secondChild:  SecondChild(),
        ),
      ),
    );
  }
}

class FirstChild extends StatelessWidget {
  const FirstChild({
    Key key,
  }) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Container(
      height: 60.0,
      width: 300.0,
      decoration: BoxDecoration(
          borderRadius: BorderRadius.circular(30.0),
          color: Colors.white30),
      child: SafeArea(
        left: true,
        right: true,
        top: true,
        bottom: true,
        child: Padding(
          padding: const EdgeInsets.all(16.0),
          child: Text(
            'Message',
            style: TextStyle(color: Colors.white, fontSize: 20.0),
          ),
        ),
      ),
    );
  }
}

class SecondChild extends StatelessWidget {
  const SecondChild({
    Key key,
  }) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Row(
      mainAxisAlignment: MainAxisAlignment.center,
      mainAxisSize: MainAxisSize.max,
      children: <Widget>[
        Padding(
          padding: const EdgeInsets.only(
              left: 12.0, right: 12.0, top: 4.0, bottom: 4.0),
          child: CircleAvatar(
            radius: 30.0,
            backgroundColor: Colors.white30,
            child: Icon(
              Icons.camera,
              color: Colors.white,
            ),
          ),
        ),
        Padding(
          padding: const EdgeInsets.only(
              left: 12.0, right: 12.0, top: 4.0, bottom: 4.0),
          child: CircleAvatar(
            radius: 30.0,
            backgroundColor: Colors.white30,
            child: Icon(
              Icons.photo_size_select_actual,
              color: Colors.white,
            ),
          ),
        ),
        Padding(
          padding: const EdgeInsets.only(
              left: 12.0, right: 12.0, top: 4.0, bottom: 4.0),
          child: CircleAvatar(
            radius: 30.0,
            backgroundColor: Colors.white30,
            child: Icon(
              Icons.videocam,
              color: Colors.white,
            ),
          ),
        ),
      ],
    );
  }
}

Demo #

flutter_chat_bar

πŸ‘¨ Developed By #

Manik Gupta

πŸ‘ How to Contribute #

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

πŸ“ƒ License #

Copyright (c) 2019 Manik Gupta

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Getting Started #

For help getting started with Flutter, view our online documentation.

For help on editing package code, view the documentation.

18
likes
30
pub points
17%
popularity

Publisher

unverified uploader

A new Flutter package which helps you to implement beautiful animated Chat Bar in your app.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on flutter_chat_bar