drawer_divider.dart 663 Bytes
Newer Older
1 2 3 4
// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

5
import 'package:flutter/widgets.dart';
6 7

import 'theme.dart';
8

9 10
class DrawerDivider extends StatelessComponent {
  const DrawerDivider({ Key key }) : super(key: key);
11

12
  Widget build(BuildContext context) {
13 14 15 16 17
    return new Container(
      height: 0.0,
      decoration: new BoxDecoration(
        border: new Border(
          bottom: new BorderSide(
18
            color: Theme.of(context).dividerColor
19 20 21 22 23 24 25
          )
        )
      ),
      margin: const EdgeDims.symmetric(vertical: 8.0)
    );
  }
}