Last active
April 1, 2021 05:00
-
-
Save NearHuscarl/6182feb015bbb179e08bf5eb61cbabac to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// https://dartpad.dev/6182feb015bbb179e08bf5eb61cbabac?null_safety=true | |
// Copyright (c) 2019, the Dart project authors. Please see the AUTHORS file | |
// for details. All rights reserved. Use of this source code is governed by a | |
// BSD-style license that can be found in the LICENSE file. | |
import 'package:flutter/material.dart'; | |
void main() => runApp(MyApp()); | |
class MyApp extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return MaterialApp( | |
title: 'Flutter Demo', | |
debugShowCheckedModeBanner: false, | |
theme: ThemeData( | |
primarySwatch: Colors.blue, | |
), | |
home: Scaffold( | |
body: Center( | |
child: Column( | |
mainAxisAlignment: MainAxisAlignment.center, | |
children: <Widget>[ | |
Container( | |
color: Colors.red, | |
padding: EdgeInsets.symmetric(vertical: 20), | |
child: Row( | |
mainAxisAlignment: MainAxisAlignment.spaceEvenly, | |
children: [ | |
IconButton( | |
icon: Icon(Icons.pause), | |
onPressed: () {}, | |
), | |
Container( | |
color: Colors.green, | |
child: new IconButton( | |
icon: new Icon( | |
Icons.search, | |
color: Colors.white, | |
), | |
onPressed: () {}, | |
), | |
), | |
Ink( | |
decoration: ShapeDecoration( | |
color: Colors.blue, | |
shape: CircleBorder(), | |
), | |
child: IconButton( | |
icon: Icon(Icons.add), | |
color: Colors.white, | |
onPressed: () {}, | |
), | |
), | |
]), | |
), | |
SizedBox(height: 10), | |
Row(mainAxisAlignment: MainAxisAlignment.spaceEvenly, children: [ | |
IconButton( | |
icon: Icon(Icons.pause), | |
onPressed: () {}, | |
), | |
Container( | |
color: Colors.green, | |
child: new IconButton( | |
icon: new Icon( | |
Icons.search, | |
color: Colors.white, | |
), | |
onPressed: () {}, | |
), | |
), | |
Ink( | |
decoration: ShapeDecoration( | |
color: Colors.blue, | |
shape: CircleBorder(), | |
), | |
child: IconButton( | |
icon: Icon(Icons.add), | |
color: Colors.white, | |
onPressed: () {}, | |
), | |
), | |
]), | |
], | |
), | |
), | |
), | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment