Skip to content

Instantly share code, notes, and snippets.

@oligazar
Created May 23, 2022 11:02
Show Gist options
  • Save oligazar/a5b6b6ccddf878d7f685819aae9ed9b6 to your computer and use it in GitHub Desktop.
Save oligazar/a5b6b6ccddf878d7f685819aae9ed9b6 to your computer and use it in GitHub Desktop.
import 'package:flutter/material.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 Material(
shape: CircleBorder(),
color: Colors.green,
child: InkWell(
child: SizedBox(
width: 40,
height: 40,
child: Center(child: Text('X')),
),
),
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment