rajath_pai

temp0

Aug 3rd, 2021
732
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import 'package:flutter/material.dart';
  2. import 'package:flutter_blue/flutter_blue.dart';
  3.  
  4. void main() => runApp(MaterialApp(
  5.   debugShowCheckedModeBanner: false,
  6.   home : Home(),
  7. ));
  8.  
  9.  
  10. class Home extends StatelessWidget {
  11.   @override
  12.   Widget build(BuildContext context) {
  13.     return Scaffold(
  14.       appBar: AppBar(
  15.         title: Text(
  16.           'Bluetooth',
  17.           style: TextStyle(color: Colors.white),
  18.         ),
  19.         actions: [
  20.           // action button
  21.           IconButton(
  22.             icon: Icon( Icons.search ),
  23.             onPressed: () { },
  24.           ),
  25.  
  26.         ],
  27.         leading: IconButton(
  28.           icon: Icon( Icons.bluetooth_connected ),
  29.           onPressed: () { },
  30.         ),
  31.         centerTitle: true,
  32.         backgroundColor: Colors.black,
  33.       ),
  34.       body: Center(
  35.         child: Text('Hello'),
  36.       ),
  37.       backgroundColor: Colors.grey[800],
  38.     );
  39.   }
  40. }
  41.  
RAW Paste Data