Advertisement
FlyFar

lib/widgets/coolText.dart

Jul 25th, 2023
1,205
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Dart 0.55 KB | Cybersecurity | 0 0
  1. // ignore_for_file: file_names, camel_case_types, use_key_in_widget_constructors
  2.  
  3. import 'package:flutter/cupertino.dart';
  4. import 'package:flutter/material.dart';
  5.  
  6. class coolText extends StatelessWidget {
  7.   const coolText({
  8.     required this.text,
  9.     required this.fontSize,
  10.   });
  11.  
  12.   final String text;
  13.   final double fontSize;
  14.  
  15.   @override
  16.   Widget build(BuildContext context) {
  17.     return Text(
  18.       text,
  19.       textAlign: TextAlign.center,
  20.       style: TextStyle(fontSize: fontSize, fontFamily: 'Poppins', color: Colors.white),
  21.     );
  22.   }
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement