flash_text 0.0.2 copy "flash_text: ^0.0.2" to clipboard
flash_text: ^0.0.2 copied to clipboard

Flash text package for text and text button with common styling for better code practices

example/lib/main.dart

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

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

class MyApp extends StatefulWidget {
  const MyApp({Key? key}) : super(key: key);

  @override
  State<MyApp> createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  @override
  Widget build(BuildContext context) => const MaterialApp(
        home: MyScreen(),
      );
}

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

  @override
  State<MyScreen> createState() => _MyScreenState();
}

class _MyScreenState extends State<MyScreen> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: const Text('Flash Text Example 1'),
      ),
      body: Column(
        children: [
          const CustomText(
            title: "Flash Text",
            maxLine: 2,
            style: TextStyle(
              fontWeight: FontWeight.w600,
            ),
          ),
          CustomText(
            title: "Flash Text",
            maxLine: 2,
            onTap: () {
              // onTap action goes here
            },
            style: const TextStyle(
              fontWeight: FontWeight.w600,
            ),
          ),
        ],
      ),
    );
  }
}
2
likes
0
pub points
5%
popularity

Publisher

verified publishercodeflashinfotech.com

Flash text package for text and text button with common styling for better code practices

Homepage

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on flash_text