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

Use trendy container just like plug and play

example/lib/main.dart

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


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

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      home: HomePage(),
    );
  }
}

class HomePage extends StatefulWidget {
  const HomePage({super.key});

  @override
  State<HomePage> createState() => _HomePageState();
}

class _HomePageState extends State<HomePage> {
  @override
  Widget build(BuildContext context) {
    return const Scaffold(
      body: Center(
        child: Column(
          mainAxisAlignment: MainAxisAlignment.center,
          children: [
            TrendyContainer(
              title: 'This is title',
              subTitle: 'This is subtitle',
              titleTextStyle: TextStyle(color: Colors.white,fontWeight: FontWeight.bold,),
              subtitleTextStyle: TextStyle(color: Colors.white,fontWeight: FontWeight.bold,),
              isRectangle: true,
              padding: EdgeInsets.all(10),
              height: 150,
              width: 300,
              centerTitle: true,
              color1: Colors.red,
              color2: Colors.orange,
            ),
            SizedBox(height: 50,),
            TrendyContainer(
              title: 'This is title',
              subTitle: 'This is subtitle',
              titleTextStyle: TextStyle(color: Colors.white,fontWeight: FontWeight.bold,),
              subtitleTextStyle: TextStyle(color: Colors.white,fontWeight: FontWeight.bold,),
              padding: EdgeInsets.all(10),
              height: 150,
              width: 300,
              centerTitle: true,
              color1: Colors.green,
              color2: Colors.greenAccent,
            ),
            SizedBox(height: 50,),
            TrendyContainer(
              title: 'This is title',
              subTitle: 'This is subtitle',
              titleTextStyle: TextStyle(color: Colors.white,fontWeight: FontWeight.bold,),
              subtitleTextStyle: TextStyle(color: Colors.white,fontWeight: FontWeight.bold,),
              padding: EdgeInsets.all(10),
              height: 180,
              width: 300,
              isCircle: true,
              centerTitle: true,
              color1: Colors.blueAccent,
              color2: Colors.lightBlue,
            ),
          ],
        ),
      ),
    );
  }
}
3
likes
130
points
24
downloads

Publisher

unverified uploader

Weekly Downloads

Use trendy container just like plug and play

Repository (GitHub)
View/report issues

Documentation

API reference

License

GPL-3.0 (license)

Dependencies

flutter

More

Packages that depend on trendy_container