rajath_pai

ninja9 icons

Jul 30th, 2021
691
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import 'package:flutter/material.dart';
  2.  
  3. void main() => runApp(MaterialApp(
  4.       home: Home(),
  5.     ));
  6.  
  7. class Home extends StatelessWidget {
  8.   @override
  9.   Widget build(BuildContext context) {
  10.     return Scaffold(
  11.       appBar: AppBar(
  12.         title: Text(
  13.           'App bar',
  14.           style: TextStyle(color: Colors.white),
  15.         ),
  16.         centerTitle: true,
  17.         backgroundColor: Colors.red,
  18.       ),
  19.       body: Center(
  20.         child: Icon(
  21.           Icons.airport_shuttle,
  22.           color : Colors.amber,
  23.           size : 50.0,
  24.         ),
  25.       ),
  26.       floatingActionButton: FloatingActionButton(
  27.         child: Text('click me'),
  28.         onPressed: null,
  29.         backgroundColor: Colors.red,
  30.       ),
  31.     );
  32.   }
  33. }
  34.  
RAW Paste Data