forked from md-siam/widget_of_the_day
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathadaptive.dart
36 lines (34 loc) · 953 Bytes
/
adaptive.dart
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
import 'package:flutter/material.dart';
class MyAdaptive extends StatelessWidget {
const MyAdaptive({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: const Text('.adaptive'),
),
body: Center(
child: Column(
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
children: [
Slider.adaptive(
value: 1,
onChanged: (double newValue) {},
),
SwitchListTile.adaptive(
title: const Text('Switch List Tile'),
value: true,
onChanged: (bool newValue) {},
),
Switch.adaptive(
value: true,
onChanged: (bool newValue) {},
),
Icon(Icons.adaptive.share),
const CircularProgressIndicator.adaptive(),
],
),
),
);
}
}