apex_flutter_sdk 1.1.1+2
apex_flutter_sdk: ^1.1.1+2 copied to clipboard

ApexTeam flutter software development kit for ApexTeam co. Open and free for everyone to use <3

example/lib/main.dart

import 'package:apex_flutter_sdk/apex_flutter_sdk.dart';
import 'package:apex_flutter_sdk/components/basic/expandable_chip.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';

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

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: MyHomePage(title: 'Flutter Demo Home Page'),
    );
  }
}

class MyHomePage extends StatefulWidget {
  MyHomePage({Key key, this.title}) : super(key: key);
  final String title;

  @override
  _MyHomePageState createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  int _counter = 0;

  void _incrementCounter() {
    setState(() {
      _counter++;
    });
  }

  String _test = '';

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text(widget.title),
      ),
      body: Directionality(
        textDirection: TextDirection.ltr,
        child: Stack(
          children: [
            Center(
              child: ExpandableChip(
                  icon: Icons.help_outline,
                  iconColor: Colors.white,
                  child: Text(
                    'Wazap nigga',
                    style: TextStyle(
                        color: Colors.white,
                        fontWeight: FontWeight.bold,
                        fontSize: 15),
                  ),
                  shrinkSize: 54,
                  expandedSize: 175,
                  duration: Duration(milliseconds: 400),
                  backgroundColor: Colors.blue,
                  onTap: () {}),
            ),
          ],
        ),
      ),
      floatingActionButton: FloatingActionButton(
        onPressed: _incrementCounter,
        tooltip: 'Increment',
        child: Icon(Icons.add),
      ),
    );
  }
}
8
likes
80
pub points
48%
popularity

Publisher

packs.apexteam.net

ApexTeam flutter software development kit for ApexTeam co. Open and free for everyone to use <3

Homepage

Documentation

API reference

License

BSD (LICENSE)

Dependencies

flutter, shamsi_date

More

Packages that depend on apex_flutter_sdk