Skip to content

Instantly share code, notes, and snippets.

@BuildCodelessly
Created May 6, 2024 15:34
Show Gist options
  • Save BuildCodelessly/13fe1e56852ced4dd85b71daff40c6c6 to your computer and use it in GitHub Desktop.
Save BuildCodelessly/13fe1e56852ced4dd85b71daff40c6c6 to your computer and use it in GitHub Desktop.
import 'package:flutter/material.dart';
import 'package:google_fonts/google_fonts.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
return const MaterialApp(
title: 'MyApp Demo',
debugShowCheckedModeBanner: false,
home: Scaffold(
body: CPF(),
),
);
}
}
class CPF extends StatelessWidget {
const CPF({super.key});
@override
Widget build(BuildContext context) {
return Container(
width: 400,
height: 40,
decoration: BoxDecoration(
color: Colors.black,
border: Border.all(
color: Colors.grey.shade300,
),
borderRadius: BorderRadius.circular(8),
),
child: Stack(
clipBehavior: Clip.none,
children: [
Positioned(
left: 15,
top: 4,
child: GestureDetector(
onTap: () {},
child: MouseRegion(
cursor: SystemMouseCursors.click,
child: SizedBox(
width: 371,
child: Text(
'CPF',
style: GoogleFonts.getFont(
'Inter',
color: const Color(0xFF828282),
fontSize: 20,
fontWeight: FontWeight.w500,
height: 1.5,
),
),
),
),
),
)
],
),
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment