fastyle_exchanges 1.0.0 copy "fastyle_exchanges: ^1.0.0" to clipboard
fastyle_exchanges: ^1.0.0 copied to clipboard

A set of widgets with defined style.

example/lib/main.dart

import 'package:fastyle_dart/fastyle_dart.dart';
import 'package:fastyle_exchanges/fastyle_exchanges.dart';
import 'package:flutter/material.dart';

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

class MyApp extends StatefulWidget {
  @override
  _MyAppState createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  FastExchangeAppBarGraphtype _graphType = FastExchangeAppBarGraphtype.line;

  @override
  Widget build(BuildContext context) {
    return FastApp(
      lightTheme: FastTheme.light.indigo,
      darkTheme: FastTheme.dark.indigo,
      home: FastExchangeHomePage(
        titleText: 'Welcome!',
        subtitleText: 'Have a wonderful day!',
        contentPadding: kFastEdgeInsets16,
        children: [
          FastRaisedButton(
            text: 'Line Graph',
            onTap: () {
              setState(() {
                _graphType = FastExchangeAppBarGraphtype.line;
              });
            },
          ),
          FastRaisedButton(
            text: 'Pie Graph',
            onTap: () {
              setState(() {
                _graphType = FastExchangeAppBarGraphtype.pie;
              });
            },
          ),
          FastRaisedButton(
            text: 'Bar Graph',
            onTap: () {
              setState(() {
                _graphType = FastExchangeAppBarGraphtype.bar;
              });
            },
          ),
        ],
        leading: IconButton(
          onPressed: () {},
          icon: Icon(Icons.settings),
        ),
        actions: [
          IconButton(
            onPressed: () {},
            icon: Icon(Icons.search),
          ),
        ],
        floatingActionButton: Icon(Icons.settings),
        appBarExpandedHeight: 250,
        graphType: _graphType,
      ),
    );
  }
}
0
likes
130
pub points
0%
popularity

Publisher

unverified uploader

A set of widgets with defined style.

Repository (GitHub)
View/report issues

Documentation

API reference

License

ISC (LICENSE)

Dependencies

fastyle_dart, flutter

More

Packages that depend on fastyle_exchanges