Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import 'package:flutter/material.dart';
- import 'package:flutter_blue/flutter_blue.dart';
- void main() => runApp(MaterialApp(
- debugShowCheckedModeBanner: false,
- home : Home(),
- ));
- class Home extends StatelessWidget {
- @override
- Widget build(BuildContext context) {
- return Scaffold(
- appBar: AppBar(
- title: Text(
- 'Bluetooth',
- style: TextStyle(color: Colors.white),
- ),
- actions: [
- // action button
- IconButton(
- icon: Icon( Icons.search ),
- onPressed: () { },
- ),
- ],
- leading: IconButton(
- icon: Icon( Icons.bluetooth_connected ),
- onPressed: () { },
- ),
- centerTitle: true,
- backgroundColor: Colors.black,
- ),
- body: Center(
- child: Text('Hello'),
- ),
- backgroundColor: Colors.grey[800],
- );
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement