Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import '../flutter_flow/flutter_flow_theme.dart';
- import '../flutter_flow/flutter_flow_util.dart';
- import 'package:flutter/material.dart';
- import 'package:google_fonts/google_fonts.dart';
- class HomePageWidget extends StatefulWidget {
- HomePageWidget({Key key}) : super(key: key);
- @override
- _HomePageWidgetState createState() => _HomePageWidgetState();
- }
- class _HomePageWidgetState extends State<HomePageWidget> {
- bool switchListTileValue;
- final scaffoldKey = GlobalKey<ScaffoldState>();
- @override
- Widget build(BuildContext context) {
- return Scaffold(
- key: scaffoldKey,
- appBar: AppBar(
- backgroundColor: Colors.black,
- automaticallyImplyLeading: true,
- actions: [],
- centerTitle: true,
- elevation: 4,
- ),
- drawer: Drawer(
- elevation: 16,
- ),
- body: SafeArea(
- child: SwitchListTile(
- value: switchListTileValue ?? true,
- onChanged: (newValue) =>
- setState(() => switchListTileValue = newValue),
- title: Text(
- 'Enable Bluetooth',
- style: FlutterFlowTheme.subtitle2.override(
- fontFamily: 'Poppins',
- ),
- ),
- tileColor: Color(0xFFF5F5F5),
- dense: false,
- controlAffinity: ListTileControlAffinity.trailing,
- ),
- ),
- );
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement