diff --git a/lib/src/App.dart b/lib/src/App.dart index 284f6ee..acdffa4 100644 --- a/lib/src/App.dart +++ b/lib/src/App.dart @@ -1,4 +1,5 @@ import 'package:flutter/material.dart'; +import 'widgets/logo.dart'; class App extends StatelessWidget { Widget build(BuildContext context) { @@ -9,7 +10,10 @@ class App extends StatelessWidget { appBar: AppBar( title: Text('DO>'), ), - body: Text('Tasks'), + body: Container( + color: Colors.blue, + child: Logo(), + ), ), ); } diff --git a/lib/src/widgets/logo.dart b/lib/src/widgets/logo.dart new file mode 100644 index 0000000..29141db --- /dev/null +++ b/lib/src/widgets/logo.dart @@ -0,0 +1,36 @@ +import 'package:flutter/material.dart'; +import 'package:font_awesome_flutter/font_awesome_flutter.dart'; + +class Logo extends StatelessWidget { + final Color color; + + const Logo({this.color = Colors.white}); + + Widget build(BuildContext context) { + return Container( + width: 165, + child: Stack( + children: [ + Text( + 'DO', + style: TextStyle( + fontFamily: 'IBM Plex Sans', + fontSize: 80.0, + fontWeight: FontWeight.w600, + color: color, + ), + ), + Positioned( + child: Icon( + FontAwesomeIcons.angleRight, + size: 90.0, + color: color, + ), + left: 90, + top: 5, + ), + ], + ), + ); + } +}