Skip to content

Instantly share code, notes, and snippets.

@rayliverified
Created December 18, 2021 02:17
Show Gist options
  • Save rayliverified/3640b6eb43e760fd88d10fb22aea90e5 to your computer and use it in GitHub Desktop.
Save rayliverified/3640b6eb43e760fd88d10fb22aea90e5 to your computer and use it in GitHub Desktop.
import 'package:flutter/material.dart';
import 'package:google_fonts/google_fonts.dart';
const Color darkBlue = Color.fromARGB(255, 18, 32, 47);
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
theme: ThemeData.dark().copyWith(
scaffoldBackgroundColor: darkBlue,
),
debugShowCheckedModeBanner: false,
home: Scaffold(
body: Center(
child: MyWidget(),
),
),
);
}
}
class MyWidget extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Container(
width: 300,
decoration: BoxDecoration(
color: Color(0xffff9a9a),
),
child: Text(
'Do you already know \nwhere to travel?',
style: GoogleFonts.getFont(
'Poppins',
color: Color(0xff6b274e),
fontSize: 26,
letterSpacing: 0,
height: 1.2,
fontWeight: FontWeight.w800,
),
));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment