taastrap 0.1.29 copy "taastrap: ^0.1.29" to clipboard
taastrap: ^0.1.29 copied to clipboard

The bootrsap library for flutter

example/example.dart

import 'package:flutter/material.dart';
import 'package:flutter/widgets.dart';

import 'package:taastrap/taastrap.dart';

/// The main function to start the application
main() async{
  runApp(MyApp());
}

class ExampleCard extends StatelessWidget{

  @override
  Widget build(BuildContext context) {
    return Padding(
      padding: EdgeInsets.all(10),
      child:  Card(
        clipBehavior: Clip.antiAlias,
        child: Column(
          children: [
            Image.network('https://zwap.in/api/media/explorer_babTtSn_QVt1BZG.png', height: 50, width: 50,),
            Padding(
              padding: const EdgeInsets.all(16.0),
              child: Text(
                "Lorem Ipsum is simply dummy text of the printing and typesetting industry. "
                    "Lorem Ipsum has been the industry's standard dummy text ever since the 1500s,"
                    " when an unknown printer took a galley of type and scrambled it to make a type specimen book.",
                style: TextStyle(color: Colors.black.withOpacity(0.6)),
              ),
            ),
            Padding(
              padding: EdgeInsets.symmetric(vertical: 10),
              child: ElevatedButton(onPressed: () {  }, child: Text("Test button"),),
            )
          ],
        ),
      ),
    );
  }


}

class MyApp extends StatelessWidget {

  final Map<Widget, Map<String, int>> widgets = {
    ExampleCard() : {'xl': 12},
    ExampleCard() : {},
    ExampleCard() : {},
    ExampleCard() : {},
    ExampleCard() : {},
  };


  @override
  Widget build(BuildContext context) {

    ScrollController controller = ScrollController();

    return MaterialApp(
      home: LayoutBuilder(builder: (context, size){
        Generic _generic = Generic(maxWith: size.maxWidth.toInt());
        int _deviceType = _generic.deviceType();
        return Container();
      },
      )
    );
  }
}
1
likes
110
pub points
35%
popularity

Publisher

unverified uploader

The bootrsap library for flutter

Repository (GitHub)
View/report issues

Documentation

API reference

License

unknown (LICENSE)

Dependencies

flutter, get_it, zwap_utils

More

Packages that depend on taastrap