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

Flutter helper_gapi package

example/lib/main.dart

import 'package:example/widget.dart';
import 'package:flutter/material.dart';
void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
        useMaterial3: true,
      ),
      home: const MyHomePage(title: 'Flutter Demo Home Page'),
    );
  }
}

class MyHomePage extends StatelessWidget {
  const MyHomePage({super.key, required this.title});
  final String title;

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Padding(
        padding: const EdgeInsets.all(20.0),
        child: Column(
           mainAxisAlignment: MainAxisAlignment.center,
          children: [
            DefaultBtn(title: "Button 1", onTap: (){
              // write your function here
            },borderRadius: 0,),
            const SizedBox(height: 15,),
            DefaultBtn(title: "Button 1", onTap: (){
              // write your function here
            },btnHeight: 50,borderWidth: 2,),
            const SizedBox(height: 15,),
            DefaultBtn(title: "Button 1", onTap: (){
              // write your function here
            },btnHeight: 50,borderRadius: 12,),

            const SizedBox(height: 15,),
            DefaultBtn(title: "Button 1", onTap: (){
              // write your function here
            },btnHeight: 50,borderRadius: 12,buttonColor: Colors.deepOrange,
            textBackGroundColor: Colors.amberAccent,
            ),

          ],
        ),
      ),
    );
  }
}
0
likes
140
points
14
downloads

Publisher

unverified uploader

Weekly Downloads

Flutter helper_gapi package

Repository (GitLab)

Documentation

API reference

License

unknown (license)

Dependencies

flutter

More

Packages that depend on helper_gapi