qwxcomponents 0.0.2-dev.2 copy "qwxcomponents: ^0.0.2-dev.2" to clipboard
qwxcomponents: ^0.0.2-dev.2 copied to clipboard

Flutter package that contains prebuilded components for creating mobile apps easily.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:qwxcomponents/GUI/BorderButtonsGroupBox.dart';
import 'package:qwxcomponents/GUI/MarkedButton.dart';
import 'package:qwxcomponents/qwxcomponents.dart';

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

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      theme: ThemeData(
        brightness: Brightness.light,
        accentColor: Colors.blue,
        primarySwatch: Colors.amber,
        textButtonTheme: TextButtonThemeData(),
      ),
      home: Scaffold(
        backgroundColor: Colors.black12,
        appBar: AppBar(
          title: const Text('Plugin example app'),
        ),
        body: Padding(
          padding: EdgeInsets.symmetric(horizontal: 10, vertical: 20),
          child: VListView(
            children: [
              BorderButtonsGroupBox(
                children: [
                  MarkedButton(
                    icon: Icon(Icons.ac_unit),
                    onPressed: () {},
                    text: 'MarkedButton with Important',
                    textRight: 'textRight',
                    textUnder: 'textUnder',
                    importantType: MarkedButtonInfoType.Important,
                  ),
                  MarkedButton(
                    icon: Icon(Icons.family_restroom),
                    onPressed: () {},
                    text: 'MarkedButtion with Unimportant',
                    textRight: 'textRight',
                    importantType: MarkedButtonInfoType.Unimportant,
                  ),
                ],
              ),
              SizedBox(height: 10),
              BorderButton(
                text: 'SINGLE BORDERBUTTON',
                onPressed: () {},
              ),
              SizedBox(
                height: 10,
              ),
              VCard(
                onTap: () {},
                padding: EdgeInsets.symmetric(vertical: 100),
                child: Center(
                  child: Text('VCard with no elevation'),
                ),
                elevation: 0.0,
              ),
              SizedBox(
                height: 10,
              ),
              Row(mainAxisAlignment: MainAxisAlignment.center, children: [
                Text(
                    'DateSquareIcon with current date (Temporarly only on russian): '),
                DateSquareIcon(
                  DateTime.now(),
                  size: 50,
                ),
              ]),
              SizedBox(height: 10),
              FocusButton(onPressed: () {}, text: 'FocusButton'),
              SizedBox(
                height: 10,
              ),
              Text('HeroImage:'),
              HeroImage(
                  frameHeight: 400,
                  url:
                      'https://flutter.dev/assets/flutter-lockup-1caf6476beed76adec3c477586da54de6b552b2f42108ec5bc68dc63bae2df75.png')
            ],
          ),
        ),
      ),
    );
  }
}
1
likes
60
pub points
0%
popularity

Publisher

unverified uploader

Flutter package that contains prebuilded components for creating mobile apps easily.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

extended_image, flutter, flutter_web_plugins, provider, rxdart, shimmer

More

Packages that depend on qwxcomponents