Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

// #region body
import 'package:cupertino_ui/cupertino_ui.dart';

/// Flutter code sample for [CupertinoActivityIndicator].
Expand Down Expand Up @@ -73,3 +74,4 @@ class CupertinoIndicatorExample extends StatelessWidget {
);
}
}
// #endregion body
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

// #region body
import 'package:cupertino_ui/cupertino_ui.dart';

/// Flutter code sample for [CupertinoLinearActivityIndicator].
Expand Down Expand Up @@ -75,3 +76,4 @@ class CupertinoIndicatorExample extends StatelessWidget {
);
}
}
// #endregion body
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

// #region body
import 'package:cupertino_ui/cupertino_ui.dart';

/// Flutter code sample for [CupertinoTabBar].
Expand Down Expand Up @@ -56,3 +57,4 @@ class CupertinoTabBarExample extends StatelessWidget {
);
}
}
// #endregion body
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

// #region body
import 'package:cupertino_ui/cupertino_ui.dart';

/// Flutter code sample for [CupertinoButton].
Expand Down Expand Up @@ -52,3 +53,4 @@ class CupertinoButtonExample extends StatelessWidget {
);
}
}
// #endregion body
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

// #region body
import 'package:cupertino_ui/cupertino_ui.dart';

/// Flutter code sample for [CupertinoCheckbox].
Expand Down Expand Up @@ -52,3 +53,4 @@ class _CupertinoCheckboxExampleState extends State<CupertinoCheckboxExample> {
);
}
}
// #endregion body
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

// #region body
import 'package:cupertino_ui/cupertino_ui.dart';

/// Flutter code sample for [CupertinoContextMenu].
Expand Down Expand Up @@ -75,3 +76,4 @@ class ContextMenuExample extends StatelessWidget {
);
}
}
// #endregion body
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

// #region body
import 'package:cupertino_ui/cupertino_ui.dart';

/// Flutter code sample for [CupertinoContextMenu].
Expand Down Expand Up @@ -114,3 +115,4 @@ class ContextMenuExample extends StatelessWidget {
);
}
}
// #endregion body
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

// #region body
import 'package:cupertino_ui/cupertino_ui.dart';

/// Flutter code sample for [CupertinoDatePicker].
Expand Down Expand Up @@ -175,3 +176,4 @@ class _DatePickerItem extends StatelessWidget {
);
}
}
// #endregion body
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

// #region body
import 'package:cupertino_ui/cupertino_ui.dart';

/// Flutter code sample for [CupertinoTimerPicker].
Expand Down Expand Up @@ -120,3 +121,4 @@ class _TimerPickerItem extends StatelessWidget {
);
}
}
// #endregion body
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

// #region body
import 'package:cupertino_ui/cupertino_ui.dart';

/// Flutter code sample for [CupertinoActionSheet].
Expand Down Expand Up @@ -76,3 +77,4 @@ class ActionSheetExample extends StatelessWidget {
);
}
}
// #endregion body
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

// #region body
import 'package:cupertino_ui/cupertino_ui.dart';

/// Flutter code sample for [CupertinoAlertDialog].
Expand Down Expand Up @@ -69,3 +70,4 @@ class AlertDialogExample extends StatelessWidget {
);
}
}
// #endregion body
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

// #region body
import 'package:cupertino_ui/cupertino_ui.dart';

/// Flutter code sample for [CupertinoPopupSurface].
Expand Down Expand Up @@ -104,3 +105,4 @@ class _PopupSurfaceExampleState extends State<PopupSurfaceExample> {
);
}
}
// #endregion body
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

// #region body
import 'package:cupertino_ui/cupertino_ui.dart';

/// Flutter code sample for [CupertinoExpansionTile] showing both
Expand Down Expand Up @@ -122,3 +123,4 @@ class _TransitionTileSectionState extends State<TransitionTileSection> {
);
}
}
// #endregion body
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

// #region body
import 'package:cupertino_ui/cupertino_ui.dart';

/// Flutter code sample for [CupertinoFormRow].
Expand Down Expand Up @@ -137,3 +138,4 @@ class PrefixWidget extends StatelessWidget {
);
}
}
// #endregion body
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

// #region body
import 'package:cupertino_ui/cupertino_ui.dart';

/// Flutter code sample for base [CupertinoListSection] and [CupertinoListTile].
Expand Down Expand Up @@ -84,3 +85,4 @@ class _SecondPage extends StatelessWidget {
return CupertinoPageScaffold(child: Center(child: Text(text)));
}
}
// #endregion body
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

// #region body
import 'package:cupertino_ui/cupertino_ui.dart';

/// Flutter code sample for inset [CupertinoListSection] and [CupertinoListTile].
Expand Down Expand Up @@ -84,3 +85,4 @@ class _SecondPage extends StatelessWidget {
return CupertinoPageScaffold(child: Center(child: Text(text)));
}
}
// #endregion body
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

// #region body
import 'package:cupertino_ui/cupertino_ui.dart';
import 'package:material_ui/material_ui.dart';

Expand Down Expand Up @@ -61,3 +62,4 @@ class CupertinoListTileExample extends StatelessWidget {
);
}
}
// #endregion body
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

// #region body
import 'package:cupertino_ui/cupertino_ui.dart';

/// Flutter code sample for [CupertinoMagnifier].
Expand Down Expand Up @@ -77,3 +78,4 @@ class _CupertinoMagnifierExampleState extends State<CupertinoMagnifierExample> {
);
}
}
// #endregion body
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

// #region body
import 'package:cupertino_ui/cupertino_ui.dart';

/// Flutter code sample for [CupertinoTextMagnifier].
Expand Down Expand Up @@ -58,3 +59,4 @@ class _CupertinoTextMagnifierExampleAppState
);
}
}
// #endregion body
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

// #region body
import 'package:flutter/foundation.dart';
import 'package:material_ui/material_ui.dart';

Expand Down Expand Up @@ -105,3 +106,4 @@ class CustomMagnifier extends StatelessWidget {
);
}
}
// #endregion body
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

// #region body
import 'package:cupertino_ui/cupertino_ui.dart';

/// Flutter code sample for a basic [CupertinoMenuAnchor].
Expand Down Expand Up @@ -84,3 +85,4 @@ class _CupertinoMenuAnchorExampleState
);
}
}
// #endregion body
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

// #region body
import 'package:cupertino_ui/cupertino_ui.dart';

/// Flutter code sample for a [CupertinoMenuAnchor] that shows a menu with three
Expand Down Expand Up @@ -133,3 +134,4 @@ class _CupertinoMenuAnchorExampleState
);
}
}
// #endregion body
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

// #region body
import 'package:cupertino_ui/cupertino_ui.dart';

/// Flutter code sample for [CupertinoNavigationBar].
Expand Down Expand Up @@ -48,3 +49,4 @@ class _NavBarExampleState extends State<NavBarExample> {
);
}
}
// #endregion body
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

// #region body
import 'package:cupertino_ui/cupertino_ui.dart';

/// Flutter code sample for [CupertinoNavigationBar] showing a
Expand Down Expand Up @@ -71,3 +72,4 @@ class _NavigationBarSearchField extends StatelessWidget
Size get preferredSize =>
const Size.fromHeight(searchFieldHeight + padding * 2);
}
// #endregion body
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

// #region body
import 'package:cupertino_ui/cupertino_ui.dart';

/// Flutter code sample for [CupertinoNavigationBar.large].
Expand Down Expand Up @@ -63,3 +64,4 @@ class _NavBarExampleState extends State<NavBarExample> {
);
}
}
// #endregion body
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

// #region body
import 'package:cupertino_ui/cupertino_ui.dart';

/// Flutter code sample for [CupertinoSliverNavigationBar].
Expand Down Expand Up @@ -110,3 +111,4 @@ class NextPage extends StatelessWidget {
);
}
}
// #endregion body
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

// #region body
import 'package:cupertino_ui/cupertino_ui.dart';

/// Flutter code sample for [CupertinoSliverNavigationBar.search].
Expand Down Expand Up @@ -158,3 +159,4 @@ class _NextPageState extends State<NextPage> {
);
}
}
// #endregion body
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

// #region body
import 'package:cupertino_ui/cupertino_ui.dart';

/// Flutter code sample for [CupertinoSliverNavigationBar].
Expand Down Expand Up @@ -117,3 +118,4 @@ class NextPage extends StatelessWidget {
);
}
}
// #endregion body
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

// #region body
import 'package:cupertino_ui/cupertino_ui.dart';

/// Flutter code sample for [CupertinoPageScaffold].
Expand Down Expand Up @@ -56,3 +57,4 @@ class _PageScaffoldExampleState extends State<PageScaffoldExample> {
);
}
}
// #endregion body
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

// #region body
import 'package:cupertino_ui/cupertino_ui.dart';

/// Flutter code sample for [CupertinoPicker].
Expand Down Expand Up @@ -111,3 +112,4 @@ class _CupertinoPickerExampleState extends State<CupertinoPickerExample> {
);
}
}
// #endregion body
Loading
Loading